Uses of Interface
org.eclipse.jetty.util.Callback
Packages that use Callback
Package
Description
Jetty Client : Implementation and Core Classes
This package provides APIs, utility classes and an implementation of an asynchronous HTTP client.
Jetty Client : API Classes
Jetty Client : Utility Classes
Jetty IO : Core classes for Jetty IO subsystem
Jetty IO : Core SSL Support
Jetty Server : Core Server API
Jetty Server : Core Handler API
Jetty GZIP Handler
Jetty Util : Common Utility Classes
-
Uses of Callback in org.eclipse.jetty.client
Classes in org.eclipse.jetty.client that implement CallbackModifier and TypeClassDescriptionclass
HttpContent
is a stateful, linear representation of the request content provided by aContentProvider
that can be traversed one-way to obtain content buffers to send to an HTTP server.class
private class
private class
private class
class
class
protected static class
private static class
private static class
private static class
Fields in org.eclipse.jetty.client declared as CallbackModifier and TypeFieldDescriptionprivate Callback
HttpReceiver.Decoder.callback
private final Callback
HttpSender.commitCallback
private final Callback
HttpSender.lastCallback
private final Callback
AbstractConnectionPool.requester
Methods in org.eclipse.jetty.client with parameters of type CallbackModifier and TypeMethodDescriptionprivate boolean
HttpReceiver.Decoder.decode
(ByteBuffer encoded, Callback callback) private boolean
HttpReceiver.decodeResponseContent
(ByteBuffer buffer, Callback callback) private void
HttpReceiver.ContentListeners.notifyContent
(HttpResponse response, ByteBuffer buffer, Callback callback) private void
ResponseNotifier.notifyContent
(Response.DemandedContentListener listener, Response response, LongConsumer demand, ByteBuffer buffer, Callback callback) void
ResponseNotifier.notifyContent
(Response response, ObjLongConsumer<Object> demand, ByteBuffer buffer, Callback callback, List<Response.DemandedContentListener> contentListeners) private boolean
HttpReceiver.plainResponseContent
(HttpExchange exchange, ByteBuffer buffer, Callback callback) protected boolean
HttpReceiver.responseContent
(HttpExchange exchange, ByteBuffer buffer, Callback callback) Method to be invoked when response HTTP content is available.protected abstract void
HttpSender.sendContent
(HttpExchange exchange, HttpContent content, Callback callback) Implementations should send the content at theHttpContent
cursor position over the wire.protected abstract void
HttpSender.sendHeaders
(HttpExchange exchange, HttpContent content, Callback callback) Implementations should send the HTTP headers over the wire, possibly with some content, in a single write, and notify the givencallback
of the result of this operation.protected abstract void
ProxyProtocolClientConnectionFactory.ProxyProtocolConnection.writePROXYBytes
(EndPoint endPoint, Callback callback) protected void
ProxyProtocolClientConnectionFactory.ProxyProtocolConnectionV1.writePROXYBytes
(EndPoint endPoint, Callback callback) protected void
ProxyProtocolClientConnectionFactory.ProxyProtocolConnectionV2.writePROXYBytes
(EndPoint endPoint, Callback callback) Constructors in org.eclipse.jetty.client with parameters of type CallbackModifierConstructorDescriptionprotected
AbstractConnectionPool
(Destination destination, int maxConnections, Callback requester) Deprecated.protected
AbstractConnectionPool
(HttpDestination destination, int maxConnections, boolean cache, Callback requester) protected
AbstractConnectionPool
(HttpDestination destination, Pool<Connection> pool, Callback requester) DuplexConnectionPool
(HttpDestination destination, int maxConnections, boolean cache, Callback requester) DuplexConnectionPool
(HttpDestination destination, int maxConnections, Callback requester) DuplexConnectionPool
(HttpDestination destination, Pool<Connection> pool, Callback requester) LeakTrackingConnectionPool
(Destination destination, int maxConnections, Callback requester) MultiplexConnectionPool
(HttpDestination destination, int maxConnections, boolean cache, Callback requester, int maxMultiplex) MultiplexConnectionPool
(HttpDestination destination, int maxConnections, Callback requester, int maxMultiplex) MultiplexConnectionPool
(HttpDestination destination, Pool<Connection> pool, Callback requester, int maxMultiplex) RandomConnectionPool
(HttpDestination destination, int maxConnections, Callback requester, int maxMultiplex) RoundRobinConnectionPool
(HttpDestination destination, int maxConnections, Callback requester) RoundRobinConnectionPool
(HttpDestination destination, int maxConnections, Callback requester, int maxMultiplex) ValidatingConnectionPool
(Destination destination, int maxConnections, Callback requester, Scheduler scheduler, long timeout) -
Uses of Callback in org.eclipse.jetty.client.api
Methods in org.eclipse.jetty.client.api with parameters of type CallbackModifier and TypeMethodDescriptionvoid
Response.AsyncContentListener.onContent
(Response response, ByteBuffer content, Callback callback) Callback method invoked when the response content has been received, parsed and there is demand.default void
Response.AsyncContentListener.onContent
(Response response, LongConsumer demand, ByteBuffer content, Callback callback) default void
Response.ContentListener.onContent
(Response response, ByteBuffer content, Callback callback) void
Response.DemandedContentListener.onContent
(Response response, LongConsumer demand, ByteBuffer content, Callback callback) Callback method invoked when the response content has been received. -
Uses of Callback in org.eclipse.jetty.client.http
Classes in org.eclipse.jetty.client.http that implement CallbackModifier and TypeClassDescriptionclass
private class
private class
Fields in org.eclipse.jetty.client.http declared as CallbackModifier and TypeFieldDescriptionprivate final Callback
HttpSenderOverHTTP.HeadersCallback.callback
Methods in org.eclipse.jetty.client.http with parameters of type CallbackModifier and TypeMethodDescriptionprotected void
HttpSenderOverHTTP.sendContent
(HttpExchange exchange, HttpContent content, Callback callback) protected void
HttpSenderOverHTTP.sendHeaders
(HttpExchange exchange, HttpContent content, Callback callback) Constructors in org.eclipse.jetty.client.http with parameters of type CallbackModifierConstructorDescriptionprivate
ByteBufferRecyclerCallback
(Callback callback, ByteBufferPool pool, ByteBuffer... buffers) HeadersCallback
(HttpExchange exchange, HttpContent content, Callback callback) -
Uses of Callback in org.eclipse.jetty.client.util
Classes in org.eclipse.jetty.client.util that implement CallbackModifier and TypeClassDescriptionclass
AContentProvider
that allows to add content afterRequest.send(Response.CompleteListener)
has been called, therefore providing the request content at a later time.private class
class
AContentProvider
for anInputStream
.private class
class
AContentProvider
that provides content asynchronously through anOutputStream
similar toDeferredContentProvider
.Fields in org.eclipse.jetty.client.util declared as CallbackMethods in org.eclipse.jetty.client.util that return types with arguments of type CallbackMethods in org.eclipse.jetty.client.util with parameters of type CallbackModifier and TypeMethodDescriptionboolean
DeferredContentProvider.offer
(ByteBuffer buffer, Callback callback) void
InputStreamResponseListener.onContent
(Response response, ByteBuffer content, Callback callback) Constructors in org.eclipse.jetty.client.util with parameters of type Callback -
Uses of Callback in org.eclipse.jetty.io
Classes in org.eclipse.jetty.io that implement CallbackFields in org.eclipse.jetty.io declared as CallbackModifier and TypeFieldDescriptionprivate final Callback
WriteFlusher.PendingState._callback
private final Callback
AbstractConnection._readCallback
Fields in org.eclipse.jetty.io with type parameters of type CallbackModifier and TypeFieldDescriptionprivate final AtomicReference
<Callback> FillInterest._interested
Methods in org.eclipse.jetty.io with parameters of type CallbackModifier and TypeMethodDescriptionprivate void
protected void
AbstractConnection.failedCallback
(Callback callback, Throwable x) void
AbstractEndPoint.fillInterested
(Callback callback) void
EndPoint.fillInterested
(Callback callback) Requests callback methods to be invoked when a call toEndPoint.fill(ByteBuffer)
would return data or EOF.void
Call to register interest in a callback when a read is possible.void
AbstractConnection.tryFillInterested
(Callback callback) boolean
AbstractEndPoint.tryFillInterested
(Callback callback) boolean
EndPoint.tryFillInterested
(Callback callback) Requests callback methods to be invoked when a call toEndPoint.fill(ByteBuffer)
would return data or EOF.boolean
FillInterest.tryRegister
(Callback callback) Call to register interest in a callback when a read is possible.void
AbstractEndPoint.write
(Callback callback, ByteBuffer... buffers) void
EndPoint.write
(Callback callback, ByteBuffer... buffers) Writes the given buffers viaEndPoint.flush(ByteBuffer...)
and invokes callback methods when either all the data has been flushed or an error occurs.void
WriteFlusher.write
(Callback callback, ByteBuffer... buffers) Tries to switch state to WRITING.Constructors in org.eclipse.jetty.io with parameters of type Callback -
Uses of Callback in org.eclipse.jetty.io.ssl
Classes in org.eclipse.jetty.io.ssl that implement CallbackModifier and TypeClassDescriptionprivate final class
Fields in org.eclipse.jetty.io.ssl declared as CallbackModifier and TypeFieldDescriptionprivate final Callback
SslConnection.DecryptedEndPoint._incompleteWriteCallback
private final Callback
SslConnection._sslReadCallback
-
Uses of Callback in org.eclipse.jetty.server
Classes in org.eclipse.jetty.server that implement CallbackModifier and TypeClassDescriptionprivate class
private class
private class
private class
private class
private class
static class
static class
static class
A Sentinel Content, which has zero length content but indicates some other event in the input stream (eg EOF)private class
private class
private class
private class
An iterating callback that will take content from an InputStream and write it to the associatedHttpChannel
.private class
private class
An iterating callback that will take content from a ReadableByteChannel and write it to theHttpChannel
.private class
Fields in org.eclipse.jetty.server declared as CallbackModifier and TypeFieldDescriptionprivate Callback
HttpConnection.SendCallback._callback
(package private) final Callback
HttpOutput.NestedChannelWriteCB._callback
private Callback
HttpOutput._closedCallback
Methods in org.eclipse.jetty.server that return CallbackMethods in org.eclipse.jetty.server with parameters of type CallbackModifier and TypeMethodDescriptionprivate void
HttpOutput.channelWrite
(ByteBuffer content, boolean last, Callback callback) void
void
void
void
Response.completeOutput
(Callback callback) void
ProxyConnectionFactory.ProxyEndPoint.fillInterested
(Callback callback) private boolean
HttpOutput.prepareSendContent
(int len, Callback callback) private boolean
HttpConnection.SendCallback.reset
(MetaData.Response info, boolean head, ByteBuffer content, boolean last, Callback callback) void
HttpConnection.send
(MetaData.Response info, boolean head, ByteBuffer content, boolean lastContent, Callback callback) void
HttpTransport.send
(MetaData.Response info, boolean head, ByteBuffer content, boolean lastContent, Callback callback) Asynchronous call to send a response (or part) over the transportvoid
HttpOutput.sendContent
(InputStream in, Callback callback) Asynchronous send of stream content.void
HttpOutput.sendContent
(ByteBuffer content, Callback callback) Asynchronous send of whole content.void
HttpOutput.sendContent
(ReadableByteChannel in, Callback callback) Asynchronous send of channel content.void
HttpOutput.sendContent
(HttpContent httpContent, Callback callback) Asynchronous send of HTTP content.boolean
HttpChannel.sendResponse
(MetaData.Response info, ByteBuffer content, boolean complete, Callback callback) boolean
ProxyConnectionFactory.ProxyEndPoint.tryFillInterested
(Callback callback) void
HttpChannel.write
(ByteBuffer content, boolean complete, Callback callback) Non-Blocking write, committing the response if needed.void
HttpOutput.Interceptor.write
(ByteBuffer content, boolean last, Callback callback) Write content.void
ProxyConnectionFactory.ProxyEndPoint.write
(Callback callback, ByteBuffer... buffers) Constructors in org.eclipse.jetty.server with parameters of type CallbackModifierConstructorDescription(package private)
InputStreamWritingCB
(InputStream in, Callback callback) (package private)
NestedChannelWriteCB
(Callback callback, boolean last) (package private)
ReadableByteChannelWritingCB
(ReadableByteChannel in, Callback callback) private
Send100Callback
(Callback callback) private
SendCallback
(Callback callback, ByteBuffer content, boolean commit, boolean complete) -
Uses of Callback in org.eclipse.jetty.server.handler
Methods in org.eclipse.jetty.server.handler with parameters of type CallbackModifier and TypeMethodDescriptionprotected void
BufferedResponseHandler.BufferedInterceptor.commit
(Queue<ByteBuffer> buffers, Callback callback) void
ContextHandlerCollection.deployHandler
(Handler handler, Callback callback) Thread safe deploy of a Handler.void
ContextHandlerCollection.undeployHandler
(Handler handler, Callback callback) Thread safe undeploy of a Handler.void
BufferedResponseHandler.BufferedInterceptor.write
(ByteBuffer content, boolean last, Callback callback) -
Uses of Callback in org.eclipse.jetty.server.handler.gzip
Classes in org.eclipse.jetty.server.handler.gzip that implement CallbackMethods in org.eclipse.jetty.server.handler.gzip with parameters of type CallbackModifier and TypeMethodDescriptionprotected void
GzipHttpOutputInterceptor.commit
(ByteBuffer content, boolean complete, Callback callback) private void
GzipHttpOutputInterceptor.gzip
(ByteBuffer content, boolean complete, Callback callback) void
GzipHttpOutputInterceptor.write
(ByteBuffer content, boolean complete, Callback callback) Constructors in org.eclipse.jetty.server.handler.gzip with parameters of type CallbackModifierConstructorDescriptionGzipBufferCB
(ByteBuffer content, boolean complete, Callback callback) -
Uses of Callback in org.eclipse.jetty.util
Subinterfaces of Callback in org.eclipse.jetty.utilClasses in org.eclipse.jetty.util that implement CallbackModifier and TypeClassDescriptionstatic class
A CompletableFuture that is also a Callback.static class
static class
Nested Completing Callback that completes after completing the nested callbackclass
Deprecated.not used anymoreclass
A callback wrapper that succeeds the wrapped callback when the count is reached, or on first failure.class
class
This specialized callback implements a pattern that allows a large job to be broken into smaller tasks using iteration rather than recursion.class
Iterating Nested Callback.class
A Closeable Callback.Fields in org.eclipse.jetty.util declared as CallbackModifier and TypeFieldDescription(package private) final Callback
IteratingNestedCallback._callback
private final Callback
Callback.Nested.callback
static final Callback
Callback.NOOP
Instance of Adapter that can be used when the callback methods need an empty implementation without incurring in the cost of allocating a new Adapter object.Methods in org.eclipse.jetty.util that return CallbackModifier and TypeMethodDescriptionstatic Callback
static Callback
Creaste a callback that runs completed when it succeeds or failsstatic Callback
Create a callback from the passed success and failurestatic Callback
Create a nested callback that runs completed before completing the nested callback.static Callback
Callback.from
(CompletableFuture<?> completable) Creates a non-blocking callback from the given incomplete CompletableFuture.static Callback
Callback.from
(CompletableFuture<?> completable, Invocable.InvocationType invocation) Creates a callback from the given incomplete CompletableFuture, with the givenblocking
characteristic.static Callback
Create a nested callback that runs completed after completing the nested callback.Callback.Nested.getCallback()
Methods in org.eclipse.jetty.util with parameters of type CallbackModifier and TypeMethodDescriptionstatic Callback
static Callback
Create a nested callback that runs completed before completing the nested callback.static Callback
Create a nested callback that runs completed after completing the nested callback.Constructors in org.eclipse.jetty.util with parameters of type CallbackModifierConstructorDescriptionCountingCallback
(Callback callback, int count) IteratingNestedCallback
(Callback callback)
AbstractConnectionPool(HttpDestination, int, boolean, Callback)
instead