Uses of Interface
org.glassfish.grizzly.GrizzlyFuture
Packages that use GrizzlyFuture
Package
Description
-
Uses of GrizzlyFuture in org.glassfish.grizzly
Methods in org.glassfish.grizzly that return GrizzlyFutureModifier and TypeMethodDescriptionCloseable.close()Gracefully (if supported by the implementation) closes this stream and releases any system resources associated with it.Connection.close()Gracefully close theConnectionCloseable.closeFuture()AbstractSocketConnectorHandler.connect(SocketAddress remoteAddress) AbstractSocketConnectorHandler.connect(SocketAddress remoteAddress, SocketAddress localAddress) final GrizzlyFuture<ReadResult<Buffer,L>> AbstractReader.read(Connection<L> connection) Method reads data.final 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.Reader.read(Connection<L> connection) Method reads data.Reader.read(Connection<L> connection, Buffer buffer) Method reads data to the buffer.Transport.shutdown()Gracefully stops the transport accepting new connections and allows existing work to complete before finalizing the shutdown.Gracefully stops the transport accepting new connections and allows existing work to complete before finalizing the shutdown.Closeable.terminate()Closes this stream and releases any system resources associated with it.Connection.terminate()Close theConnectionfinal GrizzlyFuture<WriteResult<WritableMessage,L>> AbstractWriter.write(Connection<L> connection, L dstAddress, WritableMessage message) Method writes theWritableMessageto the specific address.final 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.Writer.write(Connection<L> connection, L dstAddress, WritableMessage message) Method writes theWritableMessageto the specific address.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.implModifier and TypeInterfaceDescriptioninterfaceFutureImpl<R>Futureinterface, which has full control over the state.Classes in org.glassfish.grizzly.impl that implement GrizzlyFutureModifier and TypeClassDescriptionfinal classFutureimplementation with the specific unmodifiable result.classSafeFutureImplimplementation.final classSimple thread-unsafeFutureimplementation. -
Uses of GrizzlyFuture in org.glassfish.grizzly.nio
Methods in org.glassfish.grizzly.nio that return GrizzlyFutureModifier and TypeMethodDescriptionNIOConnection.close()NIOConnection.closeFuture()<M> GrizzlyFuture<ReadResult<M,SocketAddress>> NIOConnection.read()AbstractNIOConnectionDistributor.registerChannelAsync(SelectableChannel channel) AbstractNIOConnectionDistributor.registerChannelAsync(SelectableChannel channel, int interestOps) AbstractNIOConnectionDistributor.registerChannelAsync(SelectableChannel channel, int interestOps, Object attachment) NIOChannelDistributor.registerChannelAsync(SelectableChannel channel) NIOChannelDistributor.registerChannelAsync(SelectableChannel channel, int interestOps) NIOChannelDistributor.registerChannelAsync(SelectableChannel channel, int interestOps, Object attachment) NIOTransport.shutdown()Gracefully stops the transport accepting new connections and allows existing work to complete before finalizing the shutdown.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 GrizzlyFutureModifier and TypeMethodDescriptionTCPNIOServerConnection.accept()Accept aConnection.protected GrizzlyFuture<Connection>TCPNIOServerConnection.acceptAsync()Asynchronously accept aConnectionCreates, initializes and connects socket to the specific remote host and port and returnsConnection, representing socket.TCPNIOTransport.connect(SocketAddress remoteAddress) Creates, initializes and connects socket to the specificSocketAddressand returnsConnection, representing socket.TCPNIOTransport.connect(SocketAddress remoteAddress, SocketAddress localAddress) Creates, initializes socket, binds it to the specific local and remoteSocketAddressand returnsConnection, representing socket.UDPNIOConnectorHandler.connect()Creates non-connected UDPConnection.UDPNIOTransport.connect()Creates non-connected UDPConnection.Creates, initializes and connects socket to the specific remote host and port and returnsConnection, representing socket.UDPNIOTransport.connect(SocketAddress remoteAddress) Creates, initializes and connects socket to the specificSocketAddressand returnsConnection, representing socket.UDPNIOTransport.connect(SocketAddress remoteAddress, SocketAddress localAddress) Creates, initializes socket, binds it to the specific local and remoteSocketAddressand returnsConnection, representing socket.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 GrizzlyFutureModifier and TypeMethodDescriptionSSLBaseFilter.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 GrizzlyFutureModifier and TypeFieldDescriptionprotected static final GrizzlyFuture<Integer>AbstractStreamWriter.ZERO_READY_FUTUREprotected static final GrizzlyFuture<Integer>BufferedOutput.ZERO_READY_FUTUREMethods in org.glassfish.grizzly.streams that return GrizzlyFutureModifier and TypeMethodDescriptionAbstractStreamWriter.close(CompletionHandler<Integer> completionHandler) Close theStreamWriterand make sure all data was flushed.BufferedOutput.close(CompletionHandler<Integer> completionHandler) Output.close(CompletionHandler<Integer> completionHandler) Close theStreamWriterand make sure all data was flushed.StreamOutput.close(CompletionHandler<Integer> completionHandler) 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) AbstractStreamWriter.flush()Cause the overflow handler to be called even if buffer is not full.AbstractStreamWriter.flush(CompletionHandler<Integer> completionHandler) Cause the overflow handler to be called even if buffer is not full.BufferedOutput.flush(CompletionHandler<Integer> completionHandler) Output.flush(CompletionHandler<Integer> completionHandler) Make sure that all data that has been written is flushed from the stream to its destination.StreamOutput.flush(CompletionHandler<Integer> completionHandler) StreamWriter.flush()Make sure that all data that has been written is flushed from the stream to its destination.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) AbstractStreamReader.notifyAvailable(int size) Method returnsFuture, using which it's possible check if StreamReader has required amount of bytes available for reading reading.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.StreamReader.notifyAvailable(int size) Method returnsFuture, using which it's possible check if StreamReader has required amount of bytes available for reading reading.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.AbstractStreamReader.notifyCondition(Condition condition) AbstractStreamReader.notifyCondition(Condition condition, CompletionHandler<Integer> completionHandler) BufferedInput.notifyCondition(Condition condition, CompletionHandler<Integer> completionHandler) Input.notifyCondition(Condition condition, CompletionHandler<Integer> completionHandler) StreamInput.notifyCondition(Condition condition, CompletionHandler<Integer> completionHandler) StreamReader.notifyCondition(Condition condition) StreamReader.notifyCondition(Condition condition, CompletionHandler<Integer> completionHandler) -
Uses of GrizzlyFuture in org.glassfish.grizzly.utils
Methods in org.glassfish.grizzly.utils that return GrizzlyFutureModifier and TypeMethodDescriptionstatic <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.