Uses of Interface
org.glassfish.grizzly.CompletionHandler
-
-
Uses of CompletionHandler in org.glassfish.grizzly
Classes in org.glassfish.grizzly that implement CompletionHandler Modifier and Type Class Description classEmptyCompletionHandler<E>Empty implementation forCompletionHandlerinterface.Methods in org.glassfish.grizzly with parameters of type CompletionHandler Modifier and Type Method Description voidGrizzlyFuture. addCompletionHandler(CompletionHandler<R> completionHandler)Adds aCompletionHandler, which will be notified once the asynchronous computation, represented by this Future, is complete.voidCloseable. close(CompletionHandler<Closeable> completionHandler)Deprecated.please useCloseable.close()with the followingGrizzlyFuture.addCompletionHandler(org.glassfish.grizzly.CompletionHandler)callvoidConnection. close(CompletionHandler<Closeable> completionHandler)Deprecated.useConnection.close()with the followingGrizzlyFuture.addCompletionHandler(org.glassfish.grizzly.CompletionHandler).voidAbstractSocketConnectorHandler. connect(SocketAddress remoteAddress, SocketAddress localAddress, CompletionHandler<Connection> completionHandler)voidAbstractSocketConnectorHandler. connect(SocketAddress remoteAddress, CompletionHandler<Connection> completionHandler)voidConnectorHandler. connect(E remoteAddress, E localAddress, CompletionHandler<Connection> completionHandler)Creates, initializesConnection, binds it to the specific local and remoteremoteAddress.voidConnectorHandler. connect(E remoteAddress, CompletionHandler<Connection> completionHandler)Creates, initializes and establishesConnectionto the specificremoteAddress.protected abstract FutureImpl<Connection>AbstractSocketConnectorHandler. connectAsync(SocketAddress remoteAddress, SocketAddress localAddress, CompletionHandler<Connection> completionHandler, boolean needFuture)voidAbstractReader. read(Connection<L> connection, Buffer buffer, CompletionHandler<ReadResult<Buffer,L>> completionHandler)Method reads data to the buffer.voidProcessor. read(Connection connection, CompletionHandler<ReadResult> completionHandler)<M> voidReadable. read(CompletionHandler<ReadResult<M,L>> completionHandler)voidReader. read(Connection<L> connection, Buffer buffer, CompletionHandler<ReadResult<Buffer,L>> completionHandler)Method reads data to the buffer.voidReader. read(Connection<L> connection, Buffer buffer, CompletionHandler<ReadResult<Buffer,L>> completionHandler, Interceptor<ReadResult> interceptor)Method reads data to the buffer.voidStandaloneProcessor. read(Connection connection, CompletionHandler completionHandler)voidAbstractWriter. write(Connection<L> connection, L dstAddress, WritableMessage message, CompletionHandler<WriteResult<WritableMessage,L>> completionHandler)Method writes theWritableMessageto the specific address.voidAbstractWriter. write(Connection<L> connection, WritableMessage message, CompletionHandler<WriteResult<WritableMessage,L>> completionHandler)Method writes theWritableMessage.voidProcessor. write(Connection connection, Object dstAddress, Object message, CompletionHandler<WriteResult> completionHandler)voidProcessor. write(Connection connection, Object dstAddress, Object message, CompletionHandler<WriteResult> completionHandler, MessageCloner messageCloner)voidProcessor. write(Connection connection, Object dstAddress, Object message, CompletionHandler<WriteResult> completionHandler, PushBackHandler pushBackHandler)Deprecated.voidStandaloneProcessor. write(Connection connection, Object dstAddress, Object message, CompletionHandler completionHandler)voidStandaloneProcessor. write(Connection connection, Object dstAddress, Object message, CompletionHandler completionHandler, MessageCloner messageCloner)voidStandaloneProcessor. write(Connection connection, Object dstAddress, Object message, CompletionHandler completionHandler, PushBackHandler pushBackHandler)Deprecated.<M> voidWriteable. write(L dstAddress, M message, CompletionHandler<WriteResult<M,L>> completionHandler)Method writes the buffer to the specific address.<M> voidWriteable. write(L dstAddress, M message, CompletionHandler<WriteResult<M,L>> completionHandler, PushBackHandler pushbackHandler)Deprecated.push back logic is deprecated<M> voidWriteable. write(M message, CompletionHandler<WriteResult<M,L>> completionHandler)Method writes the buffer.<M> voidWriteable. write(M message, CompletionHandler<WriteResult<M,L>> completionHandler, PushBackHandler pushbackHandler)Deprecated.push back logic is deprecatedvoidWriter. write(Connection<L> connection, L dstAddress, WritableMessage message, CompletionHandler<WriteResult<WritableMessage,L>> completionHandler)Method writes theWritableMessageto the specific address.voidWriter. write(Connection<L> connection, L dstAddress, WritableMessage message, CompletionHandler<WriteResult<WritableMessage,L>> completionHandler, MessageCloner<WritableMessage> messageCloner)Method writes theWritableMessageto the specific address.voidWriter. write(Connection<L> connection, L dstAddress, WritableMessage message, CompletionHandler<WriteResult<WritableMessage,L>> completionHandler, PushBackHandler pushBackHandler)Deprecated.push back logic is deprecatedvoidWriter. write(Connection<L> connection, WritableMessage message, CompletionHandler<WriteResult<WritableMessage,L>> completionHandler)Method writes theWritableMessage. -
Uses of CompletionHandler in org.glassfish.grizzly.asyncqueue
Fields in org.glassfish.grizzly.asyncqueue declared as CompletionHandler Modifier and Type Field Description protected CompletionHandlerAsyncQueueRecord. completionHandlerMethods in org.glassfish.grizzly.asyncqueue with parameters of type CompletionHandler Modifier and Type Method Description static AsyncReadQueueRecordAsyncReadQueueRecord. create(Connection connection, Buffer message, CompletionHandler completionHandler, Interceptor<ReadResult> interceptor)static AsyncWriteQueueRecordAsyncWriteQueueRecord. create(Connection connection, WritableMessage message, CompletionHandler completionHandler, Object dstAddress, PushBackHandler pushbackHandler, boolean isUncountable)protected voidAsyncQueueRecord. set(Connection connection, Object message, CompletionHandler completionHandler)protected voidAsyncReadQueueRecord. set(Connection connection, Object message, CompletionHandler completionHandler, Interceptor interceptor)protected voidAsyncWriteQueueRecord. set(Connection connection, WritableMessage message, CompletionHandler completionHandler, Object dstAddress, PushBackHandler pushBackHandler, boolean isUncountable)voidAsyncQueueWriter. write(Connection<L> connection, L dstAddress, WritableMessage message, CompletionHandler<WriteResult<WritableMessage,L>> completionHandler, PushBackHandler pushBackHandler, MessageCloner<WritableMessage> cloner)Deprecated.push back logic is deprecatedConstructors in org.glassfish.grizzly.asyncqueue with parameters of type CompletionHandler Constructor Description AsyncQueueRecord(Connection connection, Object message, CompletionHandler completionHandler)AsyncWriteQueueRecord(Connection connection, WritableMessage message, CompletionHandler completionHandler, Object dstAddress, PushBackHandler pushBackHandler, boolean isUncountable) -
Uses of CompletionHandler in org.glassfish.grizzly.filterchain
Fields in org.glassfish.grizzly.filterchain declared as CompletionHandler Modifier and Type Field Description protected CompletionHandler<FilterChainContext>FilterChainContext. operationCompletionHandlerCompletionHandler, which will be notified, when operation will be complete.Methods in org.glassfish.grizzly.filterchain that return CompletionHandler Modifier and Type Method Description CompletionHandlerFilterChainContext.TransportContext. getCompletionHandler()CompletionHandlerTransportFilter.FlushEvent. getCompletionHandler()Methods in org.glassfish.grizzly.filterchain with parameters of type CompletionHandler Modifier and Type Method Description static FilterChainEventTransportFilter. createFlushEvent(CompletionHandler completionHandler)voidDefaultFilterChain. fireEventDownstream(Connection connection, FilterChainEvent event, CompletionHandler<FilterChainContext> completionHandler)voidFilterChain. fireEventDownstream(Connection connection, FilterChainEvent event, CompletionHandler<FilterChainContext> completionHandler)voidDefaultFilterChain. fireEventUpstream(Connection connection, FilterChainEvent event, CompletionHandler<FilterChainContext> completionHandler)voidFilterChain. fireEventUpstream(Connection connection, FilterChainEvent event, CompletionHandler<FilterChainContext> completionHandler)voidDefaultFilterChain. flush(Connection connection, CompletionHandler<WriteResult> completionHandler)voidFilterChain. flush(Connection connection, CompletionHandler<WriteResult> completionHandler)voidFilterChainContext. flush(CompletionHandler completionHandler)voidFilterChainContext. notifyDownstream(FilterChainEvent event, CompletionHandler<FilterChainContext> completionHandler)voidFilterChainContext. notifyUpstream(FilterChainEvent event, CompletionHandler<FilterChainContext> completionHandler)voidDefaultFilterChain. read(Connection connection, CompletionHandler<ReadResult> completionHandler)voidFilterChainContext.TransportContext. setCompletionHandler(CompletionHandler completionHandler)voidDefaultFilterChain. write(Connection connection, Object dstAddress, Object message, CompletionHandler<WriteResult> completionHandler)voidDefaultFilterChain. write(Connection connection, Object dstAddress, Object message, CompletionHandler<WriteResult> completionHandler, MessageCloner messageCloner)voidDefaultFilterChain. write(Connection connection, Object dstAddress, Object message, CompletionHandler completionHandler, PushBackHandler pushBackHandler)Deprecated.voidFilterChainContext. write(Object address, Object message, CompletionHandler<WriteResult> completionHandler)voidFilterChainContext. write(Object address, Object message, CompletionHandler<WriteResult> completionHandler, boolean blocking)voidFilterChainContext. write(Object address, Object message, CompletionHandler<WriteResult> completionHandler, MessageCloner cloner)voidFilterChainContext. write(Object address, Object message, CompletionHandler<WriteResult> completionHandler, MessageCloner cloner, boolean blocking)voidFilterChainContext. write(Object address, Object message, CompletionHandler<WriteResult> completionHandler, PushBackHandler pushBackHandler)Deprecated.voidFilterChainContext. write(Object address, Object message, CompletionHandler<WriteResult> completionHandler, PushBackHandler pushBackHandler, boolean blocking)Deprecated.voidFilterChainContext. write(Object address, Object message, CompletionHandler<WriteResult> completionHandler, PushBackHandler pushBackHandler, MessageCloner cloner)Deprecated.voidFilterChainContext. write(Object address, Object message, CompletionHandler<WriteResult> completionHandler, PushBackHandler pushBackHandler, MessageCloner cloner, boolean blocking)Deprecated.voidFilterChainContext. write(Object message, CompletionHandler<WriteResult> completionHandler)voidFilterChainContext. write(Object message, CompletionHandler<WriteResult> completionHandler, boolean blocking) -
Uses of CompletionHandler in org.glassfish.grizzly.impl
Fields in org.glassfish.grizzly.impl with type parameters of type CompletionHandler Modifier and Type Field Description protected Set<CompletionHandler<R>>UnsafeFutureImpl. completionHandlersMethods in org.glassfish.grizzly.impl with parameters of type CompletionHandler Modifier and Type Method Description voidReadyFutureImpl. addCompletionHandler(CompletionHandler<R> completionHandler)Adds aCompletionHandler, which will be notified once the asynchronous computation, represented by this Future, is complete.voidSafeFutureImpl. addCompletionHandler(CompletionHandler<R> completionHandler)Adds aCompletionHandler, which will be notified once the asynchronous computation, represented by this Future, is complete.voidUnsafeFutureImpl. addCompletionHandler(CompletionHandler<R> completionHandler)Adds aCompletionHandler, which will be notified once the asynchronous computation, represented by this Future, is complete. -
Uses of CompletionHandler in org.glassfish.grizzly.nio
Methods in org.glassfish.grizzly.nio with parameters of type CompletionHandler Modifier and Type Method Description voidNIOConnection. close(CompletionHandler<Closeable> completionHandler)Deprecated.please useNIOConnection.close()with the followingGrizzlyFuture.addCompletionHandler(org.glassfish.grizzly.CompletionHandler)callprotected voidNIOConnection. closeGracefully0(CompletionHandler<Closeable> completionHandler, CloseReason closeReason)protected AsyncWriteQueueRecordAbstractNIOAsyncQueueWriter. createRecord(Connection connection, WritableMessage message, CompletionHandler<WriteResult<WritableMessage,SocketAddress>> completionHandler, SocketAddress dstAddress, PushBackHandler pushBackHandler, boolean isUncountable)voidDefaultSelectorHandler. deregisterChannelAsync(SelectorRunner selectorRunner, SelectableChannel channel, CompletionHandler<RegisterChannelResult> completionHandler)voidSelectorHandler. deregisterChannelAsync(SelectorRunner selectorRunner, SelectableChannel channel, CompletionHandler<RegisterChannelResult> completionHandler)Deregister the channel from theSelectorRunner's Selector.voidDefaultSelectorHandler. enque(SelectorRunner selectorRunner, SelectorHandler.Task task, CompletionHandler<SelectorHandler.Task> completionHandler)voidSelectorHandler. enque(SelectorRunner selectorRunner, SelectorHandler.Task task, CompletionHandler<SelectorHandler.Task> completionHandler)Execute task in a selector thread.voidDefaultSelectorHandler. execute(SelectorRunner selectorRunner, SelectorHandler.Task task, CompletionHandler<SelectorHandler.Task> completionHandler)voidSelectorHandler. execute(SelectorRunner selectorRunner, SelectorHandler.Task task, CompletionHandler<SelectorHandler.Task> completionHandler)Execute task in a selector thread.voidAbstractNIOAsyncQueueReader. read(Connection<SocketAddress> connection, Buffer buffer, CompletionHandler<ReadResult<Buffer,SocketAddress>> completionHandler, Interceptor<ReadResult> interceptor)Method reads data to the buffer.<M> voidNIOConnection. read(CompletionHandler<ReadResult<M,SocketAddress>> completionHandler)voidDefaultSelectorHandler. registerChannelAsync(SelectorRunner selectorRunner, SelectableChannel channel, int interest, Object attachment, CompletionHandler<RegisterChannelResult> completionHandler)voidNIOChannelDistributor. registerChannelAsync(SelectableChannel channel, int interestOps, Object attachment, CompletionHandler<RegisterChannelResult> completionHandler)voidRoundRobinConnectionDistributor. registerChannelAsync(SelectableChannel channel, int interestOps, Object attachment, CompletionHandler<RegisterChannelResult> completionHandler)voidSelectorHandler. registerChannelAsync(SelectorRunner selectorRunner, SelectableChannel channel, int interest, Object attachment, CompletionHandler<RegisterChannelResult> completionHandler)voidNIOChannelDistributor. registerServiceChannelAsync(SelectableChannel channel, int interestOps, Object attachment, CompletionHandler<RegisterChannelResult> completionHandler)voidRoundRobinConnectionDistributor. registerServiceChannelAsync(SelectableChannel channel, int interestOps, Object attachment, CompletionHandler<RegisterChannelResult> completionHandler)protected voidNIOConnection. terminate0(CompletionHandler<Closeable> completionHandler, CloseReason reason)voidAbstractNIOAsyncQueueWriter. write(Connection<SocketAddress> connection, SocketAddress dstAddress, WritableMessage message, CompletionHandler<WriteResult<WritableMessage,SocketAddress>> completionHandler, MessageCloner<WritableMessage> cloner)voidAbstractNIOAsyncQueueWriter. write(Connection<SocketAddress> connection, SocketAddress dstAddress, WritableMessage message, CompletionHandler<WriteResult<WritableMessage,SocketAddress>> completionHandler, PushBackHandler pushBackHandler)Deprecated.voidAbstractNIOAsyncQueueWriter. write(Connection<SocketAddress> connection, SocketAddress dstAddress, WritableMessage message, CompletionHandler<WriteResult<WritableMessage,SocketAddress>> completionHandler, PushBackHandler pushBackHandler, MessageCloner<WritableMessage> cloner)Deprecated.<M> voidNIOConnection. write(SocketAddress dstAddress, M message, CompletionHandler<WriteResult<M,SocketAddress>> completionHandler)<M> voidNIOConnection. write(SocketAddress dstAddress, M message, CompletionHandler<WriteResult<M,SocketAddress>> completionHandler, PushBackHandler pushbackHandler)Deprecated.<M> voidNIOConnection. write(M message, CompletionHandler<WriteResult<M,SocketAddress>> completionHandler)<M> voidNIOConnection. write(M message, CompletionHandler<WriteResult<M,SocketAddress>> completionHandler, PushBackHandler pushbackHandler)Deprecated. -
Uses of CompletionHandler in org.glassfish.grizzly.nio.tmpselectors
Methods in org.glassfish.grizzly.nio.tmpselectors with parameters of type CompletionHandler Modifier and Type Method Description voidTemporarySelectorReader. read(Connection<SocketAddress> connection, Buffer message, CompletionHandler<ReadResult<Buffer,SocketAddress>> completionHandler, Interceptor<ReadResult> interceptor)voidTemporarySelectorReader. read(Connection<SocketAddress> connection, Buffer message, CompletionHandler<ReadResult<Buffer,SocketAddress>> completionHandler, Interceptor<ReadResult> interceptor, long timeout, TimeUnit timeunit)Method reads data to the message.voidTemporarySelectorWriter. write(Connection<SocketAddress> connection, SocketAddress dstAddress, WritableMessage message, CompletionHandler<WriteResult<WritableMessage,SocketAddress>> completionHandler, long timeout, TimeUnit timeunit)Method writes theWritableMessageto the specific address.voidTemporarySelectorWriter. write(Connection<SocketAddress> connection, SocketAddress dstAddress, WritableMessage message, CompletionHandler<WriteResult<WritableMessage,SocketAddress>> completionHandler, MessageCloner<WritableMessage> messageCloner)Method writes theWritableMessageto the specific address.voidTemporarySelectorWriter. write(Connection<SocketAddress> connection, SocketAddress dstAddress, WritableMessage message, CompletionHandler<WriteResult<WritableMessage,SocketAddress>> completionHandler, PushBackHandler pushBackHandler)Deprecated.voidTemporarySelectorWriter. write(Connection<SocketAddress> connection, SocketAddress dstAddress, WritableMessage message, CompletionHandler<WriteResult<WritableMessage,SocketAddress>> completionHandler, PushBackHandler pushBackHandler, long timeout, TimeUnit timeunit)Method writes theWritableMessageto the specific address. -
Uses of CompletionHandler in org.glassfish.grizzly.nio.transport
Classes in org.glassfish.grizzly.nio.transport that implement CompletionHandler Modifier and Type Class Description protected classTCPNIOServerConnection.RegisterAcceptedChannelCompletionHandlerprotected classUDPNIOTransport.RegisterChannelCompletionHandlerMethods in org.glassfish.grizzly.nio.transport with parameters of type CompletionHandler Modifier and Type Method Description protected voidTCPNIOAsyncQueueReader. addRecord(Connection connection, Buffer buffer, CompletionHandler completionHandler, Interceptor<ReadResult> interceptor)protected voidUDPNIOAsyncQueueReader. addRecord(Connection connection, Buffer buffer, CompletionHandler completionHandler, Interceptor<ReadResult> interceptor)protected voidTCPNIOServerConnection. closeGracefully0(CompletionHandler<Closeable> completionHandler, CloseReason closeReason)protected voidUDPNIOServerConnection. closeGracefully0(CompletionHandler<Closeable> completionHandler, CloseReason closeReason)voidTCPNIOConnectorHandler. connect(SocketAddress remoteAddress, SocketAddress localAddress, CompletionHandler<Connection> completionHandler)voidTCPNIOTransport. connect(SocketAddress remoteAddress, SocketAddress localAddress, CompletionHandler<Connection> completionHandler)Creates, initializes socket, binds it to the specific local and remoteSocketAddressand returnsConnection, representing socket.voidTCPNIOTransport. connect(SocketAddress remoteAddress, CompletionHandler<Connection> completionHandler)Creates, initializes and connects socket to the specificSocketAddressand returnsConnection, representing socket.voidUDPNIOConnectorHandler. connect(SocketAddress remoteAddress, SocketAddress localAddress, CompletionHandler<Connection> completionHandler)voidUDPNIOTransport. connect(SocketAddress remoteAddress, SocketAddress localAddress, CompletionHandler<Connection> completionHandler)Creates, initializes socket, binds it to the specific local and remoteSocketAddressand returnsConnection, representing socket.voidUDPNIOTransport. connect(SocketAddress remoteAddress, CompletionHandler<Connection> completionHandler)Creates, initializes and connects socket to the specificSocketAddressand returnsConnection, representing socket.protected FutureImpl<Connection>TCPNIOConnectorHandler. connectAsync(SocketAddress remoteAddress, SocketAddress localAddress, CompletionHandler<Connection> completionHandler, boolean needFuture)protected FutureImpl<Connection>UDPNIOConnectorHandler. connectAsync(SocketAddress remoteAddress, SocketAddress localAddress, CompletionHandler<Connection> completionHandler, boolean needFuture)protected voidTCPNIOConnectorHandler. connectSync(SocketAddress remoteAddress, SocketAddress localAddress, CompletionHandler<Connection> completionHandler)protected voidUDPNIOConnectorHandler. connectSync(SocketAddress remoteAddress, SocketAddress localAddress, CompletionHandler<Connection> completionHandler)GrizzlyFuture<Integer>DefaultStreamWriter. flush(CompletionHandler<Integer> completionHandler)protected GrizzlyFuture<Integer>DefaultStreamWriter.Output. flush0(Buffer buffer, CompletionHandler<Integer> completionHandler)protected voidDefaultStreamReader.Input. notifyCompleted(CompletionHandler<Integer> completionHandler)protected voidDefaultStreamReader.Input. notifyFailure(CompletionHandler<Integer> completionHandler, Throwable failure)protected static voidTCPNIOConnectorHandler. onConnectedAsync(TCPNIOConnection connection, CompletionHandler<Connection> completionHandler)protected voidTCPNIOConnection. terminate0(CompletionHandler<Closeable> completionHandler, CloseReason closeReason)protected voidUDPNIOServerConnection. terminate0(CompletionHandler<Closeable> completionHandler, CloseReason closeReason)voidUDPNIOServerConnection. unbind(CompletionHandler<Closeable> completionHandler)protected voidTCPNIOConnectorHandler. waitNIOFuture(FutureImpl<Connection> future, CompletionHandler<Connection> completionHandler)protected voidUDPNIOConnectorHandler. waitNIOFuture(FutureImpl<Connection> future, CompletionHandler<Connection> completionHandler) -
Uses of CompletionHandler in org.glassfish.grizzly.ssl
Classes in org.glassfish.grizzly.ssl that implement CompletionHandler Modifier and Type Class Description protected static classSSLStreamWriter.HandshakeCompletionHandlerMethods in org.glassfish.grizzly.ssl with parameters of type CompletionHandler Modifier and Type Method Description protected voidSSLFilter. handshake(Connection<?> connection, CompletionHandler<SSLEngine> completionHandler, Object dstAddress, SSLEngineConfigurator sslEngineConfigurator, FilterChainContext context, boolean forceBeginHandshake)voidSSLFilter. handshake(Connection connection, CompletionHandler<SSLEngine> completionHandler)voidSSLFilter. handshake(Connection connection, CompletionHandler<SSLEngine> completionHandler, Object dstAddress)voidSSLFilter. handshake(Connection connection, CompletionHandler<SSLEngine> completionHandler, Object dstAddress, SSLEngineConfigurator sslEngineConfigurator)Future<SSLEngine>SSLStreamWriter. handshake(SSLStreamReader sslStreamReader, SSLEngineConfigurator configurator, CompletionHandler<SSLEngine> completionHandler)Constructors in org.glassfish.grizzly.ssl with parameters of type CompletionHandler Constructor Description HandshakeCompletionHandler(FutureImpl<SSLEngine> future, CompletionHandler<SSLEngine> completionHandler, SSLEngine sslEngine) -
Uses of CompletionHandler in org.glassfish.grizzly.streams
Classes in org.glassfish.grizzly.streams that implement CompletionHandler Modifier and Type Class Description static classAbstractStreamWriter.DisposeBufferCompletionHandlerclassTransformerInput.TransformerCompletionHandlerFields in org.glassfish.grizzly.streams declared as CompletionHandler Modifier and Type Field Description protected CompletionHandler<Integer>BufferedInput. completionHandlerMethods in org.glassfish.grizzly.streams with parameters of type CompletionHandler Modifier and Type Method Description GrizzlyFuture<Integer>AbstractStreamWriter. close(CompletionHandler<Integer> completionHandler)Close theStreamWriterand make sure all data was flushed.GrizzlyFuture<Integer>BufferedOutput. close(CompletionHandler<Integer> completionHandler)GrizzlyFuture<Integer>Output. close(CompletionHandler<Integer> completionHandler)Close theStreamWriterand make sure all data was flushed.GrizzlyFuture<Integer>StreamOutput. close(CompletionHandler<Integer> completionHandler)GrizzlyFuture<Integer>StreamWriter. close(CompletionHandler<Integer> completionHandler)Close theStreamWriterand make sure all data was flushed.<E> GrizzlyFuture<E>AbstractStreamReader. decode(Transformer<Stream,E> decoder, CompletionHandler<E> completionHandler)Read and decode data from the StreamReader<E> GrizzlyFuture<E>StreamReader. decode(Transformer<Stream,E> decoder, CompletionHandler<E> completionHandler)Read and decode data from the StreamReader<E> GrizzlyFuture<Stream>AbstractStreamWriter. encode(Transformer<E,Buffer> encoder, E object, CompletionHandler<Stream> completionHandler)<E> GrizzlyFuture<Stream>StreamWriter. encode(Transformer<E,Buffer> encoder, E object, CompletionHandler<Stream> completionHandler)GrizzlyFuture<Integer>AbstractStreamWriter. flush(CompletionHandler<Integer> completionHandler)Cause the overflow handler to be called even if buffer is not full.GrizzlyFuture<Integer>BufferedOutput. flush(CompletionHandler<Integer> completionHandler)GrizzlyFuture<Integer>Output. flush(CompletionHandler<Integer> completionHandler)Make sure that all data that has been written is flushed from the stream to its destination.GrizzlyFuture<Integer>StreamOutput. flush(CompletionHandler<Integer> completionHandler)GrizzlyFuture<Integer>StreamWriter. flush(CompletionHandler<Integer> completionHandler)Make sure that all data that has been written is flushed from the stream to its destination.protected abstract GrizzlyFuture<Integer>BufferedOutput. flush0(Buffer buffer, CompletionHandler<Integer> completionHandler)protected GrizzlyFuture<Integer>TransformerOutput. flush0(Buffer buffer, CompletionHandler<Integer> completionHandler)GrizzlyFuture<Integer>AbstractStreamReader. notifyAvailable(int size, CompletionHandler<Integer> completionHandler)Method returnsFuture, using which it's possible check if StreamReader has required amount of bytes available for reading reading.GrizzlyFuture<Integer>StreamReader. notifyAvailable(int size, CompletionHandler<Integer> completionHandler)Method returnsFuture, using which it's possible check if StreamReader has required amount of bytes available for reading reading.protected voidBufferedInput. notifyCompleted(CompletionHandler<Integer> completionHandler)GrizzlyFuture<Integer>AbstractStreamReader. notifyCondition(Condition condition, CompletionHandler<Integer> completionHandler)GrizzlyFuture<Integer>BufferedInput. notifyCondition(Condition condition, CompletionHandler<Integer> completionHandler)GrizzlyFuture<Integer>Input. notifyCondition(Condition condition, CompletionHandler<Integer> completionHandler)GrizzlyFuture<Integer>StreamInput. notifyCondition(Condition condition, CompletionHandler<Integer> completionHandler)GrizzlyFuture<Integer>StreamReader. notifyCondition(Condition condition, CompletionHandler<Integer> completionHandler)protected voidBufferedInput. notifyFailure(CompletionHandler<Integer> completionHandler, Throwable failure) -
Uses of CompletionHandler in org.glassfish.grizzly.utils
Classes in org.glassfish.grizzly.utils that implement CompletionHandler Modifier and Type Class Description classCompletionHandlerAdapter<A,B>Methods in org.glassfish.grizzly.utils that return CompletionHandler Modifier and Type Method Description CompletionHandler<E>StateHolder.ConditionElement. getCompletionHandler()static <A,B>
CompletionHandler<B>Futures. toAdaptedCompletionHandler(FutureImpl<A> future, CompletionHandler<A> completionHandler, GenericAdapter<B,A> adapter)static <A,B>
CompletionHandler<B>Futures. toAdaptedCompletionHandler(FutureImpl<A> future, GenericAdapter<B,A> adapter)CreatesCompletionHandler, which may serve as a bridge for passedFutureImpl.static <R> CompletionHandler<R>Futures. toCompletionHandler(FutureImpl<R> future)CreatesCompletionHandler, which may serve as a bridge for passedFutureImpl.static <R> CompletionHandler<R>Futures. toCompletionHandler(FutureImpl<R> future, CompletionHandler<R> completionHandler)CreatesCompletionHandler, which may serve as a bridge for passedFutureImplandCompletionHandlerobjects.Methods in org.glassfish.grizzly.utils with parameters of type CompletionHandler Modifier and Type Method Description static <R> voidFutures. notifyCancel(FutureImpl<R> future, CompletionHandler completionHandler)Complete passedFutureImplandCompletionHandlervia the cancellation notification.static <R> voidFutures. notifyFailure(FutureImpl<R> future, CompletionHandler completionHandler, Throwable error)Complete passedFutureImplandCompletionHandlerusing the passed errorstatic <R> voidFutures. notifyResult(FutureImpl<R> future, CompletionHandler<R> completionHandler, R result)Complete passedFutureImplandCompletionHandlerusing the passed result object.Future<E>StateHolder. notifyWhenConditionMatchState(Condition condition, CompletionHandler<E> completionHandler)Register listener, which will be notified, when state will match the condition.Future<E>StateHolder. notifyWhenStateIsEqual(E state, CompletionHandler<E> completionHandler)Register listener, which will be notified, when state will be equal to passed one.Future<E>StateHolder. notifyWhenStateIsNotEqual(E state, CompletionHandler<E> completionHandler)Register listener, which will be notified, when state will become not equal to passed one.static <A,B>
CompletionHandler<B>Futures. toAdaptedCompletionHandler(FutureImpl<A> future, CompletionHandler<A> completionHandler, GenericAdapter<B,A> adapter)static <R> CompletionHandler<R>Futures. toCompletionHandler(FutureImpl<R> future, CompletionHandler<R> completionHandler)CreatesCompletionHandler, which may serve as a bridge for passedFutureImplandCompletionHandlerobjects.Constructors in org.glassfish.grizzly.utils with parameters of type CompletionHandler Constructor Description CompletionHandlerAdapter(FutureImpl<A> future, CompletionHandler<A> completionHandler)CompletionHandlerAdapter(FutureImpl<A> future, CompletionHandler<A> completionHandler, GenericAdapter<B,A> adapter)ConditionElement(Condition condition, FutureImpl<E> future, CompletionHandler<E> completionHandler)
-