Uses of Interface
org.glassfish.grizzly.CompletionHandler

Packages that use CompletionHandler
org.glassfish.grizzly   
org.glassfish.grizzly.asyncqueue   
org.glassfish.grizzly.filterchain   
org.glassfish.grizzly.nio   
org.glassfish.grizzly.nio.tmpselectors   
org.glassfish.grizzly.nio.transport   
org.glassfish.grizzly.ssl   
org.glassfish.grizzly.streams   
org.glassfish.grizzly.utils   
 

Uses of CompletionHandler in org.glassfish.grizzly
 

Classes in org.glassfish.grizzly that implement CompletionHandler
 class EmptyCompletionHandler<E>
          Empty implementation for CompletionHandler interface.
 

Methods in org.glassfish.grizzly with parameters of type CompletionHandler
 void Connection.close(CompletionHandler<Connection> completionHandler)
          Close the Connection
 void Closeable.close(CompletionHandler<E> completionHandler)
           
 void ConnectorHandler.connect(E remoteAddress, CompletionHandler<Connection> completionHandler)
          Creates, initializes and connects socket to the specific SocketAddress and returns Connection, representing socket.
 void ConnectorHandler.connect(E remoteAddress, E localAddress, CompletionHandler<Connection> completionHandler)
          Creates, initializes socket, binds it to the specific local and remote SocketAddress and returns Connection, representing socket.
 void AbstractSocketConnectorHandler.connect(java.net.SocketAddress remoteAddress, CompletionHandler<Connection> completionHandler)
           
abstract  void AbstractSocketConnectorHandler.connect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, CompletionHandler<Connection> completionHandler)
           
<M> void
Readable.read(CompletionHandler<ReadResult<M,L>> completionHandler)
           
 void Reader.read(Connection connection, Buffer buffer, CompletionHandler<ReadResult<Buffer,L>> completionHandler)
          Method reads data to the buffer.
 void AbstractReader.read(Connection connection, Buffer buffer, CompletionHandler<ReadResult<Buffer,L>> completionHandler)
          Method reads data to the buffer.
 void Reader.read(Connection connection, Buffer buffer, CompletionHandler<ReadResult<Buffer,L>> completionHandler, Interceptor<ReadResult> interceptor)
          Method reads data to the buffer.
 void StandaloneProcessor.read(Connection connection, CompletionHandler completionHandler)
           
 void Processor.read(Connection connection, CompletionHandler<ReadResult> completionHandler)
           
 void Writer.write(Connection connection, L dstAddress, WritableMessage message, CompletionHandler<WriteResult<WritableMessage,L>> completionHandler)
          Method writes the WritableMessage to the specific address.
 void AbstractWriter.write(Connection connection, L dstAddress, WritableMessage message, CompletionHandler<WriteResult<WritableMessage,L>> completionHandler)
          Method writes the WritableMessage to the specific address.
 void Writer.write(Connection connection, L dstAddress, WritableMessage message, CompletionHandler<WriteResult<WritableMessage,L>> completionHandler, PushBackHandler pushBackHandler)
          Method writes the WritableMessage to the specific address.
 void Processor.write(Connection connection, java.lang.Object dstAddress, java.lang.Object message, CompletionHandler<WriteResult> completionHandler, PushBackHandler pushBackHandler)
           
 void StandaloneProcessor.write(Connection connection, java.lang.Object dstAddress, java.lang.Object message, CompletionHandler completionHandler, PushBackHandler pushBackHandler)
           
 void Writer.write(Connection connection, WritableMessage message, CompletionHandler<WriteResult<WritableMessage,L>> completionHandler)
          Method writes the WritableMessage.
 void AbstractWriter.write(Connection connection, WritableMessage message, CompletionHandler<WriteResult<WritableMessage,L>> completionHandler)
          Method writes the WritableMessage.
<M> void
Writable.write(L dstAddress, M message, CompletionHandler<WriteResult<M,L>> completionHandler, PushBackHandler pushbackHandler)
          Method writes the buffer to the specific address.
<M> void
Writable.write(M message, CompletionHandler<WriteResult<M,L>> completionHandler)
          Method writes the buffer.
<M> void
Writable.write(M message, CompletionHandler<WriteResult<M,L>> completionHandler, PushBackHandler pushbackHandler)
          Method writes the buffer.
 

Uses of CompletionHandler in org.glassfish.grizzly.asyncqueue
 

Fields in org.glassfish.grizzly.asyncqueue declared as CompletionHandler
protected  CompletionHandler AsyncQueueRecord.completionHandler
           
 

Methods in org.glassfish.grizzly.asyncqueue with parameters of type CompletionHandler
static AsyncReadQueueRecord AsyncReadQueueRecord.create(Connection connection, Buffer message, ReadResult currentResult, CompletionHandler completionHandler, Interceptor<ReadResult> interceptor)
           
static AsyncWriteQueueRecord AsyncWriteQueueRecord.create(Connection connection, WritableMessage message, WriteResult currentResult, CompletionHandler completionHandler, java.lang.Object dstAddress, PushBackHandler pushbackHandler, boolean isEmptyRecord)
           
protected  void AsyncQueueRecord.set(Connection connection, java.lang.Object message, R currentResult, CompletionHandler completionHandler)
           
protected  void AsyncWriteQueueRecord.set(Connection connection, WritableMessage message, WriteResult currentResult, CompletionHandler completionHandler, java.lang.Object dstAddress, PushBackHandler pushBackHandler, boolean isEmptyRecord)
           
 void AsyncQueueWriter.write(Connection connection, java.net.SocketAddress dstAddress, WritableMessage message, CompletionHandler<WriteResult<WritableMessage,java.net.SocketAddress>> completionHandler, PushBackHandler pushBackHandler, MessageCloner<WritableMessage> cloner)
          Method writes the Buffer to the specific address.
 

Constructors in org.glassfish.grizzly.asyncqueue with parameters of type CompletionHandler
AsyncQueueRecord(Connection connection, java.lang.Object message, R currentResult, CompletionHandler completionHandler)
           
AsyncWriteQueueRecord(Connection connection, WritableMessage message, WriteResult currentResult, CompletionHandler completionHandler, java.lang.Object dstAddress, PushBackHandler pushBackHandler, boolean isEmptyRecord)
           
 

Uses of CompletionHandler in org.glassfish.grizzly.filterchain
 

Fields in org.glassfish.grizzly.filterchain declared as CompletionHandler
protected  CompletionHandler<FilterChainContext> FilterChainContext.operationCompletionHandler
          CompletionHandler, which will be notified, when operation will be complete.
 

Methods in org.glassfish.grizzly.filterchain that return CompletionHandler
 CompletionHandler TransportFilter.FlushEvent.getCompletionHandler()
           
 CompletionHandler FilterChainContext.TransportContext.getCompletionHandler()
           
 

Methods in org.glassfish.grizzly.filterchain with parameters of type CompletionHandler
static FilterChainEvent TransportFilter.createFlushEvent(CompletionHandler completionHandler)
           
 void FilterChain.fireEventDownstream(Connection connection, FilterChainEvent event, CompletionHandler<FilterChainContext> completionHandler)
           
 void DefaultFilterChain.fireEventDownstream(Connection connection, FilterChainEvent event, CompletionHandler<FilterChainContext> completionHandler)
           
 void FilterChain.fireEventUpstream(Connection connection, FilterChainEvent event, CompletionHandler<FilterChainContext> completionHandler)
           
 void DefaultFilterChain.fireEventUpstream(Connection connection, FilterChainEvent event, CompletionHandler<FilterChainContext> completionHandler)
           
 void FilterChainContext.flush(CompletionHandler completionHandler)
           
 void FilterChain.flush(Connection connection, CompletionHandler<WriteResult> completionHandler)
           
 void DefaultFilterChain.flush(Connection connection, CompletionHandler<WriteResult> completionHandler)
           
 void FilterChainContext.notifyDownstream(FilterChainEvent event, CompletionHandler<FilterChainContext> completionHandler)
           
 void FilterChainContext.notifyUpstream(FilterChainEvent event, CompletionHandler<FilterChainContext> completionHandler)
           
 void DefaultFilterChain.read(Connection connection, CompletionHandler<ReadResult> completionHandler)
           
 void FilterChainContext.TransportContext.setCompletionHandler(CompletionHandler completionHandler)
           
 void DefaultFilterChain.write(Connection connection, java.lang.Object dstAddress, java.lang.Object message, CompletionHandler completionHandler, PushBackHandler pushBackHandler)
           
 void FilterChainContext.write(java.lang.Object message, CompletionHandler<WriteResult> completionHandler)
           
 void FilterChainContext.write(java.lang.Object message, CompletionHandler<WriteResult> completionHandler, boolean blocking)
           
 void FilterChainContext.write(java.lang.Object address, java.lang.Object message, CompletionHandler<WriteResult> completionHandler)
           
 void FilterChainContext.write(java.lang.Object address, java.lang.Object message, CompletionHandler<WriteResult> completionHandler, boolean blocking)
           
 void FilterChainContext.write(java.lang.Object address, java.lang.Object message, CompletionHandler<WriteResult> completionHandler, PushBackHandler pushBackHandler)
           
 void FilterChainContext.write(java.lang.Object address, java.lang.Object message, CompletionHandler<WriteResult> completionHandler, PushBackHandler pushBackHandler, boolean blocking)
           
 void FilterChainContext.write(java.lang.Object address, java.lang.Object message, CompletionHandler<WriteResult> completionHandler, PushBackHandler pushBackHandler, MessageCloner cloner)
           
 void FilterChainContext.write(java.lang.Object address, java.lang.Object message, CompletionHandler<WriteResult> completionHandler, PushBackHandler pushBackHandler, MessageCloner cloner, boolean blocking)
           
 

Uses of CompletionHandler in org.glassfish.grizzly.nio
 

Methods in org.glassfish.grizzly.nio with parameters of type CompletionHandler
 void NIOConnection.close(CompletionHandler<Connection> completionHandler)
           
protected  void NIOConnection.close0(CompletionHandler<Connection> completionHandler, boolean isClosedLocally)
           
protected  AsyncWriteQueueRecord AbstractNIOAsyncQueueWriter.createRecord(Connection connection, WritableMessage message, WriteResult<WritableMessage,java.net.SocketAddress> currentResult, CompletionHandler<WriteResult<WritableMessage,java.net.SocketAddress>> completionHandler, java.net.SocketAddress dstAddress, PushBackHandler pushBackHandler, boolean isEmptyRecord)
           
 void SelectorHandler.deregisterChannelAsync(SelectorRunner selectorRunner, java.nio.channels.SelectableChannel channel, CompletionHandler<RegisterChannelResult> completionHandler)
          Deregister the channel from the SelectorRunner's Selector.
 void DefaultSelectorHandler.deregisterChannelAsync(SelectorRunner selectorRunner, java.nio.channels.SelectableChannel channel, CompletionHandler<RegisterChannelResult> completionHandler)
           
 void SelectorHandler.enque(SelectorRunner selectorRunner, SelectorHandler.Task task, CompletionHandler<SelectorHandler.Task> completionHandler)
          Execute task in a selector thread.
 void DefaultSelectorHandler.enque(SelectorRunner selectorRunner, SelectorHandler.Task task, CompletionHandler<SelectorHandler.Task> completionHandler)
           
 void SelectorHandler.execute(SelectorRunner selectorRunner, SelectorHandler.Task task, CompletionHandler<SelectorHandler.Task> completionHandler)
          Execute task in a selector thread.
 void DefaultSelectorHandler.execute(SelectorRunner selectorRunner, SelectorHandler.Task task, CompletionHandler<SelectorHandler.Task> completionHandler)
           
<M> void
NIOConnection.read(CompletionHandler<ReadResult<M,java.net.SocketAddress>> completionHandler)
           
 void AbstractNIOAsyncQueueReader.read(Connection connection, Buffer buffer, CompletionHandler<ReadResult<Buffer,java.net.SocketAddress>> completionHandler, Interceptor<ReadResult> interceptor)
          Method reads data to the buffer.
 void RoundRobinConnectionDistributor.registerChannelAsync(java.nio.channels.SelectableChannel channel, int interestOps, java.lang.Object attachment, CompletionHandler<RegisterChannelResult> completionHandler)
           
 void NIOChannelDistributor.registerChannelAsync(java.nio.channels.SelectableChannel channel, int interestOps, java.lang.Object attachment, CompletionHandler<RegisterChannelResult> completionHandler)
           
 void SelectorHandler.registerChannelAsync(SelectorRunner selectorRunner, java.nio.channels.SelectableChannel channel, int interest, java.lang.Object attachment, CompletionHandler<RegisterChannelResult> completionHandler)
           
 void DefaultSelectorHandler.registerChannelAsync(SelectorRunner selectorRunner, java.nio.channels.SelectableChannel channel, int interest, java.lang.Object attachment, CompletionHandler<RegisterChannelResult> completionHandler)
           
 void AbstractNIOAsyncQueueWriter.write(Connection connection, java.net.SocketAddress dstAddress, WritableMessage message, CompletionHandler<WriteResult<WritableMessage,java.net.SocketAddress>> completionHandler, PushBackHandler pushBackHandler)
           
 void AbstractNIOAsyncQueueWriter.write(Connection connection, java.net.SocketAddress dstAddress, WritableMessage message, CompletionHandler<WriteResult<WritableMessage,java.net.SocketAddress>> completionHandler, PushBackHandler pushBackHandler, MessageCloner<WritableMessage> cloner)
          Method writes the Buffer to the specific address.
<M> void
NIOConnection.write(M message, CompletionHandler<WriteResult<M,java.net.SocketAddress>> completionHandler)
           
<M> void
NIOConnection.write(M message, CompletionHandler<WriteResult<M,java.net.SocketAddress>> completionHandler, PushBackHandler pushbackHandler)
           
<M> void
NIOConnection.write(java.net.SocketAddress dstAddress, M message, CompletionHandler<WriteResult<M,java.net.SocketAddress>> completionHandler, PushBackHandler pushbackHandler)
           
 

Uses of CompletionHandler in org.glassfish.grizzly.nio.tmpselectors
 

Methods in org.glassfish.grizzly.nio.tmpselectors with parameters of type CompletionHandler
 void TemporarySelectorReader.read(Connection connection, Buffer message, CompletionHandler<ReadResult<Buffer,java.net.SocketAddress>> completionHandler, Interceptor<ReadResult> interceptor)
           
 void TemporarySelectorReader.read(Connection connection, Buffer message, CompletionHandler<ReadResult<Buffer,java.net.SocketAddress>> completionHandler, Interceptor<ReadResult> interceptor, long timeout, java.util.concurrent.TimeUnit timeunit)
          Method reads data to the message.
 void TemporarySelectorWriter.write(Connection connection, java.net.SocketAddress dstAddress, WritableMessage message, CompletionHandler<WriteResult<WritableMessage,java.net.SocketAddress>> completionHandler, PushBackHandler pushBackHandler)
          Method writes the WritableMessage to the specific address.
 void TemporarySelectorWriter.write(Connection connection, java.net.SocketAddress dstAddress, WritableMessage message, CompletionHandler<WriteResult<WritableMessage,java.net.SocketAddress>> completionHandler, PushBackHandler pushBackHandler, long timeout, java.util.concurrent.TimeUnit timeunit)
          Method writes the WritableMessage to the specific address.
 

Uses of CompletionHandler in org.glassfish.grizzly.nio.transport
 

Classes in org.glassfish.grizzly.nio.transport that implement CompletionHandler
protected  class TCPNIOServerConnection.RegisterAcceptedChannelCompletionHandler
           
protected  class UDPNIOTransport.RegisterChannelCompletionHandler
           
 

Methods in org.glassfish.grizzly.nio.transport with parameters of type CompletionHandler
protected  void UDPNIOAsyncQueueReader.addRecord(Connection connection, Buffer buffer, CompletionHandler completionHandler, Interceptor<ReadResult> interceptor)
           
protected  void TCPNIOAsyncQueueReader.addRecord(Connection connection, Buffer buffer, CompletionHandler completionHandler, Interceptor<ReadResult> interceptor)
           
 void UDPNIOServerConnection.close(CompletionHandler<Connection> completionHandler)
           
protected  void TCPNIOConnection.close0(CompletionHandler<Connection> completionHandler, boolean isClosedLocally)
          
 void UDPNIOTransport.connect(java.net.SocketAddress remoteAddress, CompletionHandler<Connection> completionHandler)
          Creates, initializes and connects socket to the specific SocketAddress and returns Connection, representing socket.
 void TCPNIOTransport.connect(java.net.SocketAddress remoteAddress, CompletionHandler<Connection> completionHandler)
          Creates, initializes and connects socket to the specific SocketAddress and returns Connection, representing socket.
 void UDPNIOTransport.connect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, CompletionHandler<Connection> completionHandler)
          Creates, initializes socket, binds it to the specific local and remote SocketAddress and returns Connection, representing socket.
 void UDPNIOConnectorHandler.connect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, CompletionHandler<Connection> completionHandler)
           
 void TCPNIOTransport.connect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, CompletionHandler<Connection> completionHandler)
          Creates, initializes socket, binds it to the specific local and remote SocketAddress and returns Connection, representing socket.
 void TCPNIOConnectorHandler.connect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, CompletionHandler<Connection> completionHandler)
           
protected  void UDPNIOConnectorHandler.connectAsync(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, CompletionHandler<Connection> completionHandler)
           
protected  void TCPNIOConnectorHandler.connectAsync(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, CompletionHandler<Connection> completionHandler)
           
protected  void UDPNIOConnectorHandler.connectSync(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, CompletionHandler<Connection> completionHandler)
           
protected  void TCPNIOConnectorHandler.connectSync(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, CompletionHandler<Connection> completionHandler)
           
 GrizzlyFuture<java.lang.Integer> DefaultStreamWriter.flush(CompletionHandler<java.lang.Integer> completionHandler)
           
protected  GrizzlyFuture<java.lang.Integer> DefaultStreamWriter.Output.flush0(Buffer buffer, CompletionHandler<java.lang.Integer> completionHandler)
           
protected  void DefaultStreamReader.Input.notifyCompleted(CompletionHandler<java.lang.Integer> completionHandler)
           
protected  void DefaultStreamReader.Input.notifyFailure(CompletionHandler<java.lang.Integer> completionHandler, java.lang.Throwable failure)
           
protected static void TCPNIOConnectorHandler.onConnectedAsync(TCPNIOConnection connection, CompletionHandler<Connection> completionHandler)
           
protected  void TCPNIOConnection.setConnectCompletionHandler(CompletionHandler<Connection> connectHandler)
           
 void UDPNIOServerConnection.unbind(CompletionHandler<Connection> completionHandler)
           
protected  void UDPNIOConnectorHandler.waitNIOFuture(FutureImpl<Connection> future, CompletionHandler<Connection> completionHandler)
           
protected  void TCPNIOConnectorHandler.waitNIOFuture(FutureImpl<Connection> future, CompletionHandler<Connection> completionHandler)
           
 

Uses of CompletionHandler in org.glassfish.grizzly.ssl
 

Classes in org.glassfish.grizzly.ssl that implement CompletionHandler
protected static class SSLStreamWriter.HandshakeCompletionHandler
           
 

Methods in org.glassfish.grizzly.ssl with parameters of type CompletionHandler
 void SSLFilter.handshake(Connection connection, CompletionHandler<javax.net.ssl.SSLEngine> completionHandler)
           
 void SSLFilter.handshake(Connection connection, CompletionHandler<javax.net.ssl.SSLEngine> completionHandler, java.lang.Object dstAddress)
           
 void SSLFilter.handshake(Connection connection, CompletionHandler<javax.net.ssl.SSLEngine> completionHandler, java.lang.Object dstAddress, SSLEngineConfigurator sslEngineConfigurator)
           
 java.util.concurrent.Future<javax.net.ssl.SSLEngine> SSLStreamWriter.handshake(SSLStreamReader sslStreamReader, SSLEngineConfigurator configurator, CompletionHandler<javax.net.ssl.SSLEngine> completionHandler)
           
 

Constructors in org.glassfish.grizzly.ssl with parameters of type CompletionHandler
SSLStreamWriter.HandshakeCompletionHandler(FutureImpl<javax.net.ssl.SSLEngine> future, CompletionHandler<javax.net.ssl.SSLEngine> completionHandler, javax.net.ssl.SSLEngine sslEngine)
           
 

Uses of CompletionHandler in org.glassfish.grizzly.streams
 

Classes in org.glassfish.grizzly.streams that implement CompletionHandler
static class AbstractStreamWriter.DisposeBufferCompletionHandler
           
 class TransformerInput.TransformerCompletionHandler
           
 

Fields in org.glassfish.grizzly.streams declared as CompletionHandler
protected  CompletionHandler<java.lang.Integer> BufferedInput.completionHandler
           
 

Methods in org.glassfish.grizzly.streams with parameters of type CompletionHandler
 GrizzlyFuture<java.lang.Integer> StreamWriter.close(CompletionHandler<java.lang.Integer> completionHandler)
          Close the StreamWriter and make sure all data was flushed.
 GrizzlyFuture<java.lang.Integer> StreamOutput.close(CompletionHandler<java.lang.Integer> completionHandler)
           
 GrizzlyFuture<java.lang.Integer> Output.close(CompletionHandler<java.lang.Integer> completionHandler)
          Close the StreamWriter and make sure all data was flushed.
 GrizzlyFuture<java.lang.Integer> BufferedOutput.close(CompletionHandler<java.lang.Integer> completionHandler)
           
 GrizzlyFuture<java.lang.Integer> AbstractStreamWriter.close(CompletionHandler<java.lang.Integer> completionHandler)
          Close the StreamWriter and make sure all data was flushed.
<E> GrizzlyFuture<E>
StreamReader.decode(Transformer<Stream,E> decoder, CompletionHandler<E> completionHandler)
          Read and decode data from the StreamReader
<E> GrizzlyFuture<E>
AbstractStreamReader.decode(Transformer<Stream,E> decoder, CompletionHandler<E> completionHandler)
          Read and decode data from the StreamReader
<E> GrizzlyFuture<Stream>
StreamWriter.encode(Transformer<E,Buffer> encoder, E object, CompletionHandler<Stream> completionHandler)
           
<E> GrizzlyFuture<Stream>
AbstractStreamWriter.encode(Transformer<E,Buffer> encoder, E object, CompletionHandler<Stream> completionHandler)
          
 GrizzlyFuture<java.lang.Integer> StreamWriter.flush(CompletionHandler<java.lang.Integer> completionHandler)
          Make sure that all data that has been written is flushed from the stream to its destination.
 GrizzlyFuture<java.lang.Integer> StreamOutput.flush(CompletionHandler<java.lang.Integer> completionHandler)
           
 GrizzlyFuture<java.lang.Integer> Output.flush(CompletionHandler<java.lang.Integer> completionHandler)
          Make sure that all data that has been written is flushed from the stream to its destination.
 GrizzlyFuture<java.lang.Integer> BufferedOutput.flush(CompletionHandler<java.lang.Integer> completionHandler)
           
 GrizzlyFuture<java.lang.Integer> AbstractStreamWriter.flush(CompletionHandler<java.lang.Integer> completionHandler)
          Cause the overflow handler to be called even if buffer is not full.
protected  GrizzlyFuture<java.lang.Integer> TransformerOutput.flush0(Buffer buffer, CompletionHandler<java.lang.Integer> completionHandler)
           
protected abstract  GrizzlyFuture<java.lang.Integer> BufferedOutput.flush0(Buffer buffer, CompletionHandler<java.lang.Integer> completionHandler)
           
 GrizzlyFuture<java.lang.Integer> StreamReader.notifyAvailable(int size, CompletionHandler<java.lang.Integer> completionHandler)
          Method returns Future, using which it's possible check if StreamReader has required amount of bytes available for reading reading.
 GrizzlyFuture<java.lang.Integer> AbstractStreamReader.notifyAvailable(int size, CompletionHandler<java.lang.Integer> completionHandler)
          Method returns Future, using which it's possible check if StreamReader has required amount of bytes available for reading reading.
protected  void BufferedInput.notifyCompleted(CompletionHandler<java.lang.Integer> completionHandler)
           
 GrizzlyFuture<java.lang.Integer> StreamReader.notifyCondition(Condition condition, CompletionHandler<java.lang.Integer> completionHandler)
          Method returns Future, using which it's possible check if StreamReader meets specific Condition.
 GrizzlyFuture<java.lang.Integer> StreamInput.notifyCondition(Condition condition, CompletionHandler<java.lang.Integer> completionHandler)
           
 GrizzlyFuture<java.lang.Integer> Input.notifyCondition(Condition condition, CompletionHandler<java.lang.Integer> completionHandler)
           
 GrizzlyFuture<java.lang.Integer> BufferedInput.notifyCondition(Condition condition, CompletionHandler<java.lang.Integer> completionHandler)
           
 GrizzlyFuture<java.lang.Integer> AbstractStreamReader.notifyCondition(Condition condition, CompletionHandler<java.lang.Integer> completionHandler)
          Method returns Future, using which it's possible check if StreamReader meets specific Condition.
protected  void BufferedInput.notifyFailure(CompletionHandler<java.lang.Integer> completionHandler, java.lang.Throwable failure)
           
 

Uses of CompletionHandler in org.glassfish.grizzly.utils
 

Classes in org.glassfish.grizzly.utils that implement CompletionHandler
 class CompletionHandlerAdapter<A,B>
           
 

Methods in org.glassfish.grizzly.utils that return CompletionHandler
 CompletionHandler<E> StateHolder.ConditionElement.getCompletionHandler()
           
static
<A,B> CompletionHandler<B>
Futures.toAdaptedCompletionHandler(FutureImpl<A> future, CompletionHandler<A> completionHandler, GenericAdapter<B,A> adapter)
          Creates CompletionHandler, which may serve as a bridge for passed FutureImpl and CompletionHandler.
static
<A,B> CompletionHandler<B>
Futures.toAdaptedCompletionHandler(FutureImpl<A> future, GenericAdapter<B,A> adapter)
          Creates CompletionHandler, which may serve as a bridge for passed FutureImpl.
static
<R> CompletionHandler<R>
Futures.toCompletionHandler(FutureImpl<R> future)
          Creates CompletionHandler, which may serve as a bridge for passed FutureImpl.
static
<R> CompletionHandler<R>
Futures.toCompletionHandler(FutureImpl<R> future, CompletionHandler<R> completionHandler)
          Creates CompletionHandler, which may serve as a bridge for passed FutureImpl and CompletionHandler objects.
 

Methods in org.glassfish.grizzly.utils with parameters of type CompletionHandler
static
<R> void
Futures.notifyCancel(FutureImpl<R> future, CompletionHandler completionHandler)
          Complete passed FutureImpl and CompletionHandler via the cancellation notification.
static
<R> void
Futures.notifyFailure(FutureImpl<R> future, CompletionHandler completionHandler, java.lang.Throwable error)
          Complete passed FutureImpl and CompletionHandler using the passed error
static
<R> void
Futures.notifyResult(FutureImpl<R> future, CompletionHandler<R> completionHandler, R result)
          Complete passed FutureImpl and CompletionHandler using the passed result object.
 java.util.concurrent.Future<E> StateHolder.notifyWhenConditionMatchState(Condition condition, CompletionHandler<E> completionHandler)
          Register listener, which will be notified, when state will match the condition.
 java.util.concurrent.Future<E> StateHolder.notifyWhenStateIsEqual(E state, CompletionHandler<E> completionHandler)
          Register listener, which will be notified, when state will be equal to passed one.
 java.util.concurrent.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)
          Creates CompletionHandler, which may serve as a bridge for passed FutureImpl and CompletionHandler.
static
<R> CompletionHandler<R>
Futures.toCompletionHandler(FutureImpl<R> future, CompletionHandler<R> completionHandler)
          Creates CompletionHandler, which may serve as a bridge for passed FutureImpl and CompletionHandler objects.
 

Constructors in org.glassfish.grizzly.utils with parameters of type CompletionHandler
CompletionHandlerAdapter(FutureImpl<A> future, CompletionHandler<A> completionHandler)
           
CompletionHandlerAdapter(FutureImpl<A> future, CompletionHandler<A> completionHandler, GenericAdapter<B,A> adapter)
           
StateHolder.ConditionElement(Condition condition, FutureImpl<E> future, CompletionHandler<E> completionHandler)
           
 



Copyright © 2012 Oracle Corporation. All Rights Reserved.