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
 GrizzlyFuture<Connection> Connection.close(CompletionHandler<Connection> completionHandler)
          Close the Connection
 GrizzlyFuture<E> Closeable.close(CompletionHandler<E> completionHandler)
           
 java.util.concurrent.Future<Connection> ConnectorHandler.connect(E remoteAddress, CompletionHandler<Connection> completionHandler)
          Creates, initializes and connects socket to the specific SocketAddress and returns Connection, representing socket.
 java.util.concurrent.Future<Connection> 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.
 GrizzlyFuture<Connection> AbstractSocketConnectorHandler.connect(java.net.SocketAddress remoteAddress, CompletionHandler<Connection> completionHandler)
           
abstract  GrizzlyFuture<Connection> AbstractSocketConnectorHandler.connect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, CompletionHandler<Connection> completionHandler)
           
<M> GrizzlyFuture<ReadResult<M,L>>
Readable.read(CompletionHandler<ReadResult<M,L>> completionHandler)
           
 GrizzlyFuture<ReadResult<Buffer,L>> Reader.read(Connection connection, Buffer buffer, CompletionHandler<ReadResult<Buffer,L>> completionHandler)
          Method reads data to the buffer.
 GrizzlyFuture<ReadResult<Buffer,L>> AbstractReader.read(Connection connection, Buffer buffer, CompletionHandler<ReadResult<Buffer,L>> completionHandler)
          Method reads data to the buffer.
 GrizzlyFuture<ReadResult<Buffer,L>> Reader.read(Connection connection, Buffer buffer, CompletionHandler<ReadResult<Buffer,L>> completionHandler, Interceptor<ReadResult> interceptor)
          Method reads data to the buffer.
 GrizzlyFuture StandaloneProcessor.read(Connection connection, CompletionHandler completionHandler)
           
 GrizzlyFuture<ReadResult> Processor.read(Connection connection, CompletionHandler<ReadResult> completionHandler)
           
 GrizzlyFuture<WriteResult<Buffer,L>> Writer.write(Connection connection, Buffer buffer, CompletionHandler<WriteResult<Buffer,L>> completionHandler)
          Method writes the buffer.
 GrizzlyFuture<WriteResult<Buffer,L>> AbstractWriter.write(Connection connection, Buffer buffer, CompletionHandler<WriteResult<Buffer,L>> completionHandler)
          Method writes the buffer.
 GrizzlyFuture<WriteResult<Buffer,L>> Writer.write(Connection connection, L dstAddress, Buffer buffer, CompletionHandler<WriteResult<Buffer,L>> completionHandler)
          Method writes the buffer to the specific address.
 GrizzlyFuture<WriteResult<Buffer,L>> AbstractWriter.write(Connection connection, L dstAddress, Buffer buffer, CompletionHandler<WriteResult<Buffer,L>> completionHandler)
          Method writes the buffer to the specific address.
 GrizzlyFuture<WriteResult<Buffer,L>> Writer.write(Connection connection, L dstAddress, Buffer buffer, CompletionHandler<WriteResult<Buffer,L>> completionHandler, Interceptor<WriteResult<Buffer,L>> interceptor)
          Method writes the buffer to the specific address.
 GrizzlyFuture StandaloneProcessor.write(Connection connection, java.lang.Object dstAddress, java.lang.Object message, CompletionHandler completionHandler)
           
 GrizzlyFuture<WriteResult> Processor.write(Connection connection, java.lang.Object dstAddress, java.lang.Object message, CompletionHandler<WriteResult> completionHandler)
           
<M> GrizzlyFuture<WriteResult<M,L>>
Writable.write(L dstAddress, M message, CompletionHandler<WriteResult<M,L>> completionHandler)
          Method writes the buffer to the specific address.
<M> GrizzlyFuture<WriteResult<M,L>>
Writable.write(M message, CompletionHandler<WriteResult<M,L>> completionHandler)
          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 that return CompletionHandler
 CompletionHandler AsyncQueueRecord.getCompletionHandler()
           
 

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

Constructors in org.glassfish.grizzly.asyncqueue with parameters of type CompletionHandler
AsyncQueueRecord(Connection connection, Buffer message, java.util.concurrent.Future future, R currentResult, CompletionHandler completionHandler)
           
AsyncWriteQueueRecord(Connection connection, Buffer message, java.util.concurrent.Future future, WriteResult currentResult, CompletionHandler completionHandler, java.lang.Object dstAddress, 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(FutureImpl future, CompletionHandler completionHandler)
           
 GrizzlyFuture<FilterChainContext> FilterChain.fireEventDownstream(Connection connection, FilterChainEvent event, CompletionHandler<FilterChainContext> completionHandler)
           
 GrizzlyFuture<FilterChainContext> DefaultFilterChain.fireEventDownstream(Connection connection, FilterChainEvent event, CompletionHandler<FilterChainContext> completionHandler)
           
 GrizzlyFuture<FilterChainContext> FilterChain.fireEventUpstream(Connection connection, FilterChainEvent event, CompletionHandler<FilterChainContext> completionHandler)
           
 GrizzlyFuture<FilterChainContext> DefaultFilterChain.fireEventUpstream(Connection connection, FilterChainEvent event, CompletionHandler<FilterChainContext> completionHandler)
           
 void FilterChainContext.flush(CompletionHandler completionHandler)
           
<M> GrizzlyFuture<WriteResult>
FilterChain.flush(Connection connection, CompletionHandler<WriteResult> completionHandler)
           
<M> GrizzlyFuture<WriteResult>
DefaultFilterChain.flush(Connection connection, CompletionHandler<WriteResult> completionHandler)
           
 void FilterChainContext.notifyDownstream(FilterChainEvent event, CompletionHandler<FilterChainContext> completionHandler)
           
 void FilterChainContext.notifyUpstream(FilterChainEvent event, CompletionHandler<FilterChainContext> completionHandler)
           
 GrizzlyFuture<ReadResult> DefaultFilterChain.read(Connection connection, CompletionHandler completionHandler)
           
 void FilterChainContext.TransportContext.setCompletionHandler(CompletionHandler completionHandler)
           
 GrizzlyFuture<WriteResult> DefaultFilterChain.write(Connection connection, java.lang.Object dstAddress, java.lang.Object message, CompletionHandler completionHandler)
           
 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, MessageCloner cloner)
           
 void FilterChainContext.write(java.lang.Object address, java.lang.Object message, CompletionHandler<WriteResult> completionHandler, MessageCloner cloner, boolean blocking)
           
 

Uses of CompletionHandler in org.glassfish.grizzly.nio
 

Methods in org.glassfish.grizzly.nio with parameters of type CompletionHandler
 GrizzlyFuture<Connection> NIOConnection.close(CompletionHandler<Connection> completionHandler)
           
protected  AsyncWriteQueueRecord AbstractNIOAsyncQueueWriter.createRecord(Connection connection, Buffer message, java.util.concurrent.Future<WriteResult<Buffer,java.net.SocketAddress>> future, WriteResult<Buffer,java.net.SocketAddress> currentResult, CompletionHandler<WriteResult<Buffer,java.net.SocketAddress>> completionHandler, java.net.SocketAddress dstAddress, boolean isEmptyRecord)
           
 GrizzlyFuture<RegisterChannelResult> SelectorHandler.deregisterChannelAsync(SelectorRunner selectorRunner, java.nio.channels.SelectableChannel channel, CompletionHandler<RegisterChannelResult> completionHandler)
          Deregister the channel from the SelectorRunner's Selector.
 GrizzlyFuture<RegisterChannelResult> DefaultSelectorHandler.deregisterChannelAsync(SelectorRunner selectorRunner, java.nio.channels.SelectableChannel channel, CompletionHandler<RegisterChannelResult> completionHandler)
           
 GrizzlyFuture<java.lang.Runnable> SelectorHandler.executeInSelectorThread(SelectorRunner selectorRunner, java.lang.Runnable runnableTask, CompletionHandler<java.lang.Runnable> completionHandler)
           
 GrizzlyFuture<java.lang.Runnable> DefaultSelectorHandler.executeInSelectorThread(SelectorRunner selectorRunner, java.lang.Runnable runnableTask, CompletionHandler<java.lang.Runnable> completionHandler)
           
<M> GrizzlyFuture<ReadResult<M,java.net.SocketAddress>>
NIOConnection.read(CompletionHandler<ReadResult<M,java.net.SocketAddress>> completionHandler)
           
 GrizzlyFuture<ReadResult<Buffer,java.net.SocketAddress>> AbstractNIOAsyncQueueReader.read(Connection connection, Buffer buffer, CompletionHandler<ReadResult<Buffer,java.net.SocketAddress>> completionHandler, Interceptor<ReadResult> interceptor)
          Method reads data to the buffer.
 GrizzlyFuture<RegisterChannelResult> RoundRobinConnectionDistributor.registerChannelAsync(java.nio.channels.SelectableChannel channel, int interestOps, java.lang.Object attachment, CompletionHandler<RegisterChannelResult> completionHandler)
           
 GrizzlyFuture<RegisterChannelResult> NIOChannelDistributor.registerChannelAsync(java.nio.channels.SelectableChannel channel, int interestOps, java.lang.Object attachment, CompletionHandler<RegisterChannelResult> completionHandler)
           
 GrizzlyFuture<RegisterChannelResult> SelectorHandler.registerChannelAsync(SelectorRunner selectorRunner, java.nio.channels.SelectableChannel channel, int interest, java.lang.Object attachment, CompletionHandler<RegisterChannelResult> completionHandler)
           
 GrizzlyFuture<RegisterChannelResult> DefaultSelectorHandler.registerChannelAsync(SelectorRunner selectorRunner, java.nio.channels.SelectableChannel channel, int interest, java.lang.Object attachment, CompletionHandler<RegisterChannelResult> completionHandler)
           
 GrizzlyFuture<WriteResult<Buffer,java.net.SocketAddress>> AbstractNIOAsyncQueueWriter.write(Connection connection, java.net.SocketAddress dstAddress, Buffer buffer, CompletionHandler<WriteResult<Buffer,java.net.SocketAddress>> completionHandler, Interceptor<WriteResult<Buffer,java.net.SocketAddress>> interceptor)
           
 GrizzlyFuture<WriteResult<Buffer,java.net.SocketAddress>> AbstractNIOAsyncQueueWriter.write(Connection connection, java.net.SocketAddress dstAddress, Buffer buffer, CompletionHandler<WriteResult<Buffer,java.net.SocketAddress>> completionHandler, Interceptor<WriteResult<Buffer,java.net.SocketAddress>> interceptor, MessageCloner<Buffer> cloner)
          Method writes the Buffer to the specific address.
<M> GrizzlyFuture<WriteResult<M,java.net.SocketAddress>>
NIOConnection.write(M message, CompletionHandler<WriteResult<M,java.net.SocketAddress>> completionHandler)
           
<M> GrizzlyFuture<WriteResult<M,java.net.SocketAddress>>
NIOConnection.write(java.net.SocketAddress dstAddress, M message, CompletionHandler<WriteResult<M,java.net.SocketAddress>> completionHandler)
           
 

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

Methods in org.glassfish.grizzly.nio.tmpselectors with parameters of type CompletionHandler
 GrizzlyFuture<ReadResult<Buffer,java.net.SocketAddress>> TemporarySelectorReader.read(Connection connection, Buffer message, CompletionHandler<ReadResult<Buffer,java.net.SocketAddress>> completionHandler, Interceptor<ReadResult> interceptor)
           
 GrizzlyFuture<ReadResult<Buffer,java.net.SocketAddress>> 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.
 GrizzlyFuture<WriteResult<Buffer,java.net.SocketAddress>> TemporarySelectorWriter.write(Connection connection, java.net.SocketAddress dstAddress, Buffer buffer, CompletionHandler<WriteResult<Buffer,java.net.SocketAddress>> completionHandler, Interceptor<WriteResult<Buffer,java.net.SocketAddress>> interceptor)
          Method writes the buffer to the specific address.
 GrizzlyFuture<WriteResult<Buffer,java.net.SocketAddress>> TemporarySelectorWriter.write(Connection connection, java.net.SocketAddress dstAddress, Buffer message, CompletionHandler<WriteResult<Buffer,java.net.SocketAddress>> completionHandler, Interceptor<WriteResult<Buffer,java.net.SocketAddress>> interceptor, long timeout, java.util.concurrent.TimeUnit timeunit)
          Method writes the message 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)
           
 GrizzlyFuture<Connection> UDPNIOServerConnection.close(CompletionHandler<Connection> completionHandler)
           
 GrizzlyFuture<Connection> UDPNIOTransport.connect(java.net.SocketAddress remoteAddress, CompletionHandler<Connection> completionHandler)
          Creates, initializes and connects socket to the specific SocketAddress and returns Connection, representing socket.
 GrizzlyFuture<Connection> TCPNIOTransport.connect(java.net.SocketAddress remoteAddress, CompletionHandler<Connection> completionHandler)
          Creates, initializes and connects socket to the specific SocketAddress and returns Connection, representing socket.
 GrizzlyFuture<Connection> 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.
 GrizzlyFuture<Connection> UDPNIOConnectorHandler.connect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, CompletionHandler<Connection> completionHandler)
           
 GrizzlyFuture<Connection> 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.
 GrizzlyFuture<Connection> TCPNIOConnectorHandler.connect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, CompletionHandler<Connection> completionHandler)
           
protected  GrizzlyFuture<Connection> UDPNIOConnectorHandler.connectAsync(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, CompletionHandler<Connection> completionHandler)
           
protected  GrizzlyFuture<Connection> TCPNIOConnectorHandler.connectAsync(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, CompletionHandler<Connection> completionHandler)
           
protected  GrizzlyFuture<Connection> UDPNIOConnectorHandler.connectSync(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, CompletionHandler<Connection> completionHandler)
           
protected  GrizzlyFuture<Connection> TCPNIOConnectorHandler.connectSync(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, CompletionHandler<Connection> completionHandler)
           
protected  AsyncWriteQueueRecord TCPNIOAsyncQueueWriter.createRecord(Connection connection, Buffer message, java.util.concurrent.Future<WriteResult<Buffer,java.net.SocketAddress>> future, WriteResult<Buffer,java.net.SocketAddress> currentResult, CompletionHandler<WriteResult<Buffer,java.net.SocketAddress>> completionHandler, java.net.SocketAddress dstAddress, boolean isEmptyRecord)
           
 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, FutureImpl<Connection> connectFuture, CompletionHandler<Connection> completionHandler)
           
protected  void TCPNIOConnection.setConnectCompletionHandler(CompletionHandler<Connection> connectHandler)
           
 GrizzlyFuture<Connection> UDPNIOServerConnection.unbind(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()
           
 

Methods in org.glassfish.grizzly.utils with parameters of type CompletionHandler
 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.
 

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, CompletionHandlerAdapter.ResultAdapter<A,B> adapter)
           
StateHolder.ConditionElement(Condition condition, FutureImpl<E> future, CompletionHandler<E> completionHandler)
           
 



Copyright © 2011 Oracle Corpration. All Rights Reserved.