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 TypeClassDescriptionclassHttpContentis a stateful, linear representation of the request content provided by aContentProviderthat can be traversed one-way to obtain content buffers to send to an HTTP server.classprivate classprivate classprivate classclassclassprotected static classprivate static classprivate static classprivate static classFields in org.eclipse.jetty.client declared as CallbackModifier and TypeFieldDescriptionprivate CallbackHttpReceiver.Decoder.callbackprivate final CallbackHttpSender.commitCallbackprivate final CallbackHttpSender.lastCallbackprivate final CallbackAbstractConnectionPool.requesterMethods in org.eclipse.jetty.client with parameters of type CallbackModifier and TypeMethodDescriptionprivate booleanHttpReceiver.Decoder.decode(ByteBuffer encoded, Callback callback) private booleanHttpReceiver.decodeResponseContent(ByteBuffer buffer, Callback callback) private voidHttpReceiver.ContentListeners.notifyContent(HttpResponse response, ByteBuffer buffer, Callback callback) private voidResponseNotifier.notifyContent(Response.DemandedContentListener listener, Response response, LongConsumer demand, ByteBuffer buffer, Callback callback) voidResponseNotifier.notifyContent(Response response, ObjLongConsumer<Object> demand, ByteBuffer buffer, Callback callback, List<Response.DemandedContentListener> contentListeners) private booleanHttpReceiver.plainResponseContent(HttpExchange exchange, ByteBuffer buffer, Callback callback) protected booleanHttpReceiver.responseContent(HttpExchange exchange, ByteBuffer buffer, Callback callback) Method to be invoked when response HTTP content is available.protected abstract voidHttpSender.sendContent(HttpExchange exchange, HttpContent content, Callback callback) Implementations should send the content at theHttpContentcursor position over the wire.protected abstract voidHttpSender.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 givencallbackof the result of this operation.protected abstract voidProxyProtocolClientConnectionFactory.ProxyProtocolConnection.writePROXYBytes(EndPoint endPoint, Callback callback) protected voidProxyProtocolClientConnectionFactory.ProxyProtocolConnectionV1.writePROXYBytes(EndPoint endPoint, Callback callback) protected voidProxyProtocolClientConnectionFactory.ProxyProtocolConnectionV2.writePROXYBytes(EndPoint endPoint, Callback callback) Constructors in org.eclipse.jetty.client with parameters of type CallbackModifierConstructorDescriptionprotectedAbstractConnectionPool(Destination destination, int maxConnections, Callback requester) Deprecated.protectedAbstractConnectionPool(HttpDestination destination, int maxConnections, boolean cache, Callback requester) protectedAbstractConnectionPool(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 TypeMethodDescriptionvoidResponse.AsyncContentListener.onContent(Response response, ByteBuffer content, Callback callback) Callback method invoked when the response content has been received, parsed and there is demand.default voidResponse.AsyncContentListener.onContent(Response response, LongConsumer demand, ByteBuffer content, Callback callback) default voidResponse.ContentListener.onContent(Response response, ByteBuffer content, Callback callback) voidResponse.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 TypeClassDescriptionclassprivate classprivate classFields in org.eclipse.jetty.client.http declared as CallbackModifier and TypeFieldDescriptionprivate final CallbackHttpSenderOverHTTP.HeadersCallback.callbackMethods in org.eclipse.jetty.client.http with parameters of type CallbackModifier and TypeMethodDescriptionprotected voidHttpSenderOverHTTP.sendContent(HttpExchange exchange, HttpContent content, Callback callback) protected voidHttpSenderOverHTTP.sendHeaders(HttpExchange exchange, HttpContent content, Callback callback) Constructors in org.eclipse.jetty.client.http with parameters of type CallbackModifierConstructorDescriptionprivateByteBufferRecyclerCallback(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 TypeClassDescriptionclassAContentProviderthat allows to add content afterRequest.send(Response.CompleteListener)has been called, therefore providing the request content at a later time.private classclassAContentProviderfor anInputStream.private classclassAContentProviderthat provides content asynchronously through anOutputStreamsimilar 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 TypeMethodDescriptionbooleanDeferredContentProvider.offer(ByteBuffer buffer, Callback callback) voidInputStreamResponseListener.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 CallbackWriteFlusher.PendingState._callbackprivate final CallbackAbstractConnection._readCallbackFields in org.eclipse.jetty.io with type parameters of type CallbackModifier and TypeFieldDescriptionprivate final AtomicReference<Callback> FillInterest._interestedMethods in org.eclipse.jetty.io with parameters of type CallbackModifier and TypeMethodDescriptionprivate voidprotected voidAbstractConnection.failedCallback(Callback callback, Throwable x) voidAbstractEndPoint.fillInterested(Callback callback) voidEndPoint.fillInterested(Callback callback) Requests callback methods to be invoked when a call toEndPoint.fill(ByteBuffer)would return data or EOF.voidCall to register interest in a callback when a read is possible.voidAbstractConnection.tryFillInterested(Callback callback) booleanAbstractEndPoint.tryFillInterested(Callback callback) booleanEndPoint.tryFillInterested(Callback callback) Requests callback methods to be invoked when a call toEndPoint.fill(ByteBuffer)would return data or EOF.booleanFillInterest.tryRegister(Callback callback) Call to register interest in a callback when a read is possible.voidAbstractEndPoint.write(Callback callback, ByteBuffer... buffers) voidEndPoint.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.voidWriteFlusher.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 classFields in org.eclipse.jetty.io.ssl declared as CallbackModifier and TypeFieldDescriptionprivate final CallbackSslConnection.DecryptedEndPoint._incompleteWriteCallbackprivate final CallbackSslConnection._sslReadCallback -
Uses of Callback in org.eclipse.jetty.server
Classes in org.eclipse.jetty.server that implement CallbackModifier and TypeClassDescriptionprivate classprivate classprivate classprivate classprivate classprivate classstatic classstatic classstatic classA Sentinel Content, which has zero length content but indicates some other event in the input stream (eg EOF)private classprivate classprivate classprivate classAn iterating callback that will take content from an InputStream and write it to the associatedHttpChannel.private classprivate classAn iterating callback that will take content from a ReadableByteChannel and write it to theHttpChannel.private classFields in org.eclipse.jetty.server declared as CallbackModifier and TypeFieldDescriptionprivate CallbackHttpConnection.SendCallback._callback(package private) final CallbackHttpOutput.NestedChannelWriteCB._callbackprivate CallbackHttpOutput._closedCallbackMethods in org.eclipse.jetty.server that return CallbackMethods in org.eclipse.jetty.server with parameters of type CallbackModifier and TypeMethodDescriptionprivate voidHttpOutput.channelWrite(ByteBuffer content, boolean last, Callback callback) voidvoidvoidvoidResponse.completeOutput(Callback callback) voidProxyConnectionFactory.ProxyEndPoint.fillInterested(Callback callback) private booleanHttpOutput.prepareSendContent(int len, Callback callback) private booleanHttpConnection.SendCallback.reset(MetaData.Response info, boolean head, ByteBuffer content, boolean last, Callback callback) voidHttpConnection.send(MetaData.Response info, boolean head, ByteBuffer content, boolean lastContent, Callback callback) voidHttpTransport.send(MetaData.Response info, boolean head, ByteBuffer content, boolean lastContent, Callback callback) Asynchronous call to send a response (or part) over the transportvoidHttpOutput.sendContent(InputStream in, Callback callback) Asynchronous send of stream content.voidHttpOutput.sendContent(ByteBuffer content, Callback callback) Asynchronous send of whole content.voidHttpOutput.sendContent(ReadableByteChannel in, Callback callback) Asynchronous send of channel content.voidHttpOutput.sendContent(HttpContent httpContent, Callback callback) Asynchronous send of HTTP content.booleanHttpChannel.sendResponse(MetaData.Response info, ByteBuffer content, boolean complete, Callback callback) booleanProxyConnectionFactory.ProxyEndPoint.tryFillInterested(Callback callback) voidHttpChannel.write(ByteBuffer content, boolean complete, Callback callback) Non-Blocking write, committing the response if needed.voidHttpOutput.Interceptor.write(ByteBuffer content, boolean last, Callback callback) Write content.voidProxyConnectionFactory.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) privateSend100Callback(Callback callback) privateSendCallback(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 voidBufferedResponseHandler.BufferedInterceptor.commit(Queue<ByteBuffer> buffers, Callback callback) voidContextHandlerCollection.deployHandler(Handler handler, Callback callback) Thread safe deploy of a Handler.voidContextHandlerCollection.undeployHandler(Handler handler, Callback callback) Thread safe undeploy of a Handler.voidBufferedResponseHandler.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 voidGzipHttpOutputInterceptor.commit(ByteBuffer content, boolean complete, Callback callback) private voidGzipHttpOutputInterceptor.gzip(ByteBuffer content, boolean complete, Callback callback) voidGzipHttpOutputInterceptor.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 classA CompletableFuture that is also a Callback.static classstatic classNested Completing Callback that completes after completing the nested callbackclassDeprecated.not used anymoreclassA callback wrapper that succeeds the wrapped callback when the count is reached, or on first failure.classclassThis specialized callback implements a pattern that allows a large job to be broken into smaller tasks using iteration rather than recursion.classIterating Nested Callback.classA Closeable Callback.Fields in org.eclipse.jetty.util declared as CallbackModifier and TypeFieldDescription(package private) final CallbackIteratingNestedCallback._callbackprivate final CallbackCallback.Nested.callbackstatic final CallbackCallback.NOOPInstance 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 Callbackstatic CallbackCreaste a callback that runs completed when it succeeds or failsstatic CallbackCreate a callback from the passed success and failurestatic CallbackCreate a nested callback that runs completed before completing the nested callback.static CallbackCallback.from(CompletableFuture<?> completable) Creates a non-blocking callback from the given incomplete CompletableFuture.static CallbackCallback.from(CompletableFuture<?> completable, Invocable.InvocationType invocation) Creates a callback from the given incomplete CompletableFuture, with the givenblockingcharacteristic.static CallbackCreate 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 Callbackstatic CallbackCreate a nested callback that runs completed before completing the nested callback.static CallbackCreate 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