Uses of Interface
org.glassfish.grizzly.GrizzlyFuture
-
-
Uses of GrizzlyFuture in org.glassfish.grizzly
Methods in org.glassfish.grizzly that return GrizzlyFuture Modifier and Type Method Description GrizzlyFuture<Closeable>Closeable. close()Gracefully (if supported by the implementation) closes this stream and releases any system resources associated with it.GrizzlyFuture<Closeable>Connection. close()Gracefully close theConnectionGrizzlyFuture<CloseReason>Closeable. closeFuture()GrizzlyFuture<Connection>AbstractSocketConnectorHandler. connect(String host, int port)GrizzlyFuture<Connection>AbstractSocketConnectorHandler. connect(SocketAddress remoteAddress)GrizzlyFuture<Connection>AbstractSocketConnectorHandler. connect(SocketAddress remoteAddress, SocketAddress localAddress)GrizzlyFuture<ReadResult<Buffer,L>>AbstractReader. read(Connection<L> connection)Method reads data.GrizzlyFuture<ReadResult<Buffer,L>>AbstractReader. read(Connection<L> connection, Buffer buffer)Method reads data to the buffer.<M> GrizzlyFuture<ReadResult<M,L>>Readable. read()Method reads data.GrizzlyFuture<ReadResult<Buffer,L>>Reader. read(Connection<L> connection)Method reads data.GrizzlyFuture<ReadResult<Buffer,L>>Reader. read(Connection<L> connection, Buffer buffer)Method reads data to the buffer.GrizzlyFuture<Transport>Transport. shutdown()Gracefully stops the transport accepting new connections and allows existing work to complete before finalizing the shutdown.GrizzlyFuture<Transport>Transport. shutdown(long gracePeriod, TimeUnit timeUnit)Gracefully stops the transport accepting new connections and allows existing work to complete before finalizing the shutdown.GrizzlyFuture<Closeable>Closeable. terminate()Closes this stream and releases any system resources associated with it.GrizzlyFuture<Closeable>Connection. terminate()Close theConnectionGrizzlyFuture<WriteResult<WritableMessage,L>>AbstractWriter. write(Connection<L> connection, L dstAddress, WritableMessage message)Method writes theWritableMessageto the specific address.GrizzlyFuture<WriteResult<WritableMessage,L>>AbstractWriter. write(Connection<L> connection, WritableMessage message)Method writes theWritableMessage.<M> GrizzlyFuture<WriteResult<M,L>>Writeable. write(M message)Method writes the buffer.GrizzlyFuture<WriteResult<WritableMessage,L>>Writer. write(Connection<L> connection, L dstAddress, WritableMessage message)Method writes theWritableMessageto the specific address.GrizzlyFuture<WriteResult<WritableMessage,L>>Writer. write(Connection<L> connection, WritableMessage message)Method writes theWritableMessage. -
Uses of GrizzlyFuture in org.glassfish.grizzly.impl
Subinterfaces of GrizzlyFuture in org.glassfish.grizzly.impl Modifier and Type Interface Description interfaceFutureImpl<R>Futureinterface, which has full control over the state.Classes in org.glassfish.grizzly.impl that implement GrizzlyFuture Modifier and Type Class Description classReadyFutureImpl<R>Futureimplementation with the specific unmodifiable result.classSafeFutureImpl<R>SafeFutureImplimplementation.classUnsafeFutureImpl<R>Simple thread-unsafeFutureimplementation. -
Uses of GrizzlyFuture in org.glassfish.grizzly.nio
Methods in org.glassfish.grizzly.nio that return GrizzlyFuture Modifier and Type Method Description GrizzlyFuture<Closeable>NIOConnection. close()GrizzlyFuture<CloseReason>NIOConnection. closeFuture()<M> GrizzlyFuture<ReadResult<M,SocketAddress>>NIOConnection. read()GrizzlyFuture<RegisterChannelResult>AbstractNIOConnectionDistributor. registerChannelAsync(SelectableChannel channel)GrizzlyFuture<RegisterChannelResult>AbstractNIOConnectionDistributor. registerChannelAsync(SelectableChannel channel, int interestOps)GrizzlyFuture<RegisterChannelResult>AbstractNIOConnectionDistributor. registerChannelAsync(SelectableChannel channel, int interestOps, Object attachment)GrizzlyFuture<RegisterChannelResult>NIOChannelDistributor. registerChannelAsync(SelectableChannel channel)GrizzlyFuture<RegisterChannelResult>NIOChannelDistributor. registerChannelAsync(SelectableChannel channel, int interestOps)GrizzlyFuture<RegisterChannelResult>NIOChannelDistributor. registerChannelAsync(SelectableChannel channel, int interestOps, Object attachment)GrizzlyFuture<Transport>NIOTransport. shutdown()GrizzlyFuture<Transport>NIOTransport. shutdown(long gracePeriod, TimeUnit timeUnit)Gracefully stops the transport accepting new connections and allows existing work to complete before finalizing the shutdown.GrizzlyFuture<Closeable>NIOConnection. terminate()<M> GrizzlyFuture<WriteResult<M,SocketAddress>>NIOConnection. write(M message) -
Uses of GrizzlyFuture in org.glassfish.grizzly.nio.transport
Methods in org.glassfish.grizzly.nio.transport that return GrizzlyFuture Modifier and Type Method Description GrizzlyFuture<Connection>TCPNIOServerConnection. accept()Accept aConnection.protected GrizzlyFuture<Connection>TCPNIOServerConnection. acceptAsync()Asynchronously accept aConnectionGrizzlyFuture<Connection>TCPNIOTransport. connect(String host, int port)Creates, initializes and connects socket to the specific remote host and port and returnsConnection, representing socket.GrizzlyFuture<Connection>TCPNIOTransport. connect(SocketAddress remoteAddress)Creates, initializes and connects socket to the specificSocketAddressand returnsConnection, representing socket.GrizzlyFuture<Connection>TCPNIOTransport. connect(SocketAddress remoteAddress, SocketAddress localAddress)Creates, initializes socket, binds it to the specific local and remoteSocketAddressand returnsConnection, representing socket.GrizzlyFuture<Connection>UDPNIOConnectorHandler. connect()Creates non-connected UDPConnection.GrizzlyFuture<Connection>UDPNIOTransport. connect()Creates non-connected UDPConnection.GrizzlyFuture<Connection>UDPNIOTransport. connect(String host, int port)Creates, initializes and connects socket to the specific remote host and port and returnsConnection, representing socket.GrizzlyFuture<Connection>UDPNIOTransport. connect(SocketAddress remoteAddress)Creates, initializes and connects socket to the specificSocketAddressand returnsConnection, representing socket.GrizzlyFuture<Connection>UDPNIOTransport. connect(SocketAddress remoteAddress, SocketAddress localAddress)Creates, initializes socket, binds it to the specific local and remoteSocketAddressand returnsConnection, representing socket.GrizzlyFuture<Integer>DefaultStreamWriter. flush(CompletionHandler<Integer> completionHandler)protected GrizzlyFuture<Integer>DefaultStreamWriter.Output. flush0(Buffer buffer, CompletionHandler<Integer> completionHandler) -
Uses of GrizzlyFuture in org.glassfish.grizzly.ssl
Methods in org.glassfish.grizzly.ssl that return GrizzlyFuture Modifier and Type Method Description GrizzlyFuture<Object[]>SSLBaseFilter.CertificateEvent. trigger(FilterChainContext ctx)Invoke this method to trigger processing to abtain certificates from the remote peer. -
Uses of GrizzlyFuture in org.glassfish.grizzly.streams
Fields in org.glassfish.grizzly.streams declared as GrizzlyFuture Modifier and Type Field Description protected static GrizzlyFuture<Integer>AbstractStreamWriter. ZERO_READY_FUTUREprotected static GrizzlyFuture<Integer>BufferedOutput. ZERO_READY_FUTUREMethods in org.glassfish.grizzly.streams that return GrizzlyFuture 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)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<E>StreamReader. decode(Transformer<Stream,E> decoder)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)<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)<E> GrizzlyFuture<Stream>StreamWriter. encode(Transformer<E,Buffer> encoder, E object, CompletionHandler<Stream> completionHandler)GrizzlyFuture<Integer>AbstractStreamWriter. flush()Cause the overflow handler to be called even if buffer is not full.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()Make sure that all data that has been written is flushed from the stream to its destination.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)Method returnsFuture, using which it's possible check if StreamReader has required amount of bytes available for reading reading.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)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.GrizzlyFuture<Integer>AbstractStreamReader. notifyCondition(Condition condition)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)GrizzlyFuture<Integer>StreamReader. notifyCondition(Condition condition, CompletionHandler<Integer> completionHandler) -
Uses of GrizzlyFuture in org.glassfish.grizzly.utils
Methods in org.glassfish.grizzly.utils that return GrizzlyFuture Modifier and Type Method Description static <R> GrizzlyFuture<R>Futures. createReadyFuture(Throwable error)Create aFuture, which has a preset failure.static <R> GrizzlyFuture<R>Futures. createReadyFuture(R result)Create aFuture, which has a preset result.
-