Uses of Interface
org.glassfish.grizzly.Connection
Packages that use Connection
Package
Description
-
Uses of Connection in org.glassfish.grizzly
Methods in org.glassfish.grizzly that return ConnectionModifier and TypeMethodDescriptionConnection<?>AbstractBindingHandler.bind(int port) Binds Transport to the specific port on localhost.Connection<?>Binds Transport to the specific host and port.Connection<?>Binds Transport to the specific host and port.Connection<?>Connection<?>Binds Transport to the specific host, and port within aPortRange.Connection<?>SocketBinder.bind(int port) Binds Transport to the specific port on localhost.Connection<?>Binds Transport to the specific host and port.Connection<?>Binds Transport to the specific host and port.Connection<?>Binds Transport to the specific host, and port within aPortRange.Connection<?>Binds Transport to the specific host, and port within aPortRange.Connection<?>SocketBinder.bind(SocketAddress socketAddress) Binds Transport to the specific SocketAddress.Connection<?>SocketBinder.bind(SocketAddress socketAddress, int backlog) Binds Transport to the specific SocketAddress.Connection<?>SocketBinder.bindToInherited()Binds the Transport to the channel inherited from the entity that created this Java virtual machine.Context.getConnection()Get the processingConnection.final Connection<L>ReadResult.getConnection()Get theConnectiondata were read from.Result.getConnection()GetConnection, associated with the result.final Connection<L>WriteResult.getConnection()Get theConnectiondata were read from.Methods in org.glassfish.grizzly that return types with arguments of type ConnectionModifier and TypeMethodDescriptionSocketAcceptor.accept()Accept aConnectionAbstractSocketConnectorHandler.connect(SocketAddress remoteAddress) AbstractSocketConnectorHandler.connect(SocketAddress remoteAddress, SocketAddress localAddress) Creates, initializes and establishesConnectionto the specificremoteAddress.Creates, initializesConnection, binds it to the specific local and remoteremoteAddress.Creates, initializes and connects socket to the specific remote host and port and returnsConnection, representing socket.protected abstract FutureImpl<Connection>AbstractSocketConnectorHandler.connectAsync(SocketAddress remoteAddress, SocketAddress localAddress, CompletionHandler<Connection> completionHandler, boolean needFuture) protected FutureImpl<Connection>AbstractSocketConnectorHandler.makeCancellableFuture(Connection connection) Methods in org.glassfish.grizzly with parameters of type ConnectionModifier and TypeMethodDescriptionbooleanWriter.canWrite(Connection<L> connection) Returntrueif the connection has not exceeded it's maximum size in bytes of pending writes, otherwisefalse.protected abstract voidAbstractTransport.closeConnection(Connection connection) Close the connection, managed by Transportstatic ContextContext.create(Connection connection) static ContextContext.create(Connection connection, Processor processor, IOEvent ioEvent, IOEventLifeCycleListener lifeCycleListener) static <K,L> ReadResult<K, L> ReadResult.create(Connection<L> connection) static <K,L> ReadResult<K, L> ReadResult.create(Connection<L> connection, K message, L srcAddress, int readSize) static <K,L> WriteResult<K, L> WriteResult.create(Connection<L> connection) static <K,L> WriteResult<K, L> WriteResult.create(Connection<L> connection, K message, L dstAddress, long writeSize) static voidProcessorExecutor.execute(Connection connection, IOEvent ioEvent, Processor processor, IOEventLifeCycleListener lifeCycleListener) booleanIOStrategy.executeIoEvent(Connection connection, IOEvent ioEvent) TheSelectorRunnerwill invoke this method to allow the strategy implementation to decide how theIOEventwill be handled.booleanIOStrategy.executeIoEvent(Connection connection, IOEvent ioEvent, boolean isIoEventEnabled) TheSelectorRunnerwill invoke this method to allow the strategy implementation to decide how theIOEventwill be handled.voidTransport.fireIOEvent(IOEvent ioEvent, Connection connection, IOEventLifeCycleListener listener) Fires specificIOEventon theConnectionTransport.getReader(Connection connection) Get theReaderto read data from theConnection.StandaloneProcessor.getStreamReader(Connection connection) StandaloneProcessor.getStreamWriter(Connection connection) IOStrategy.getThreadPoolFor(Connection connection, IOEvent ioEvent) Returns anExecutorto be used to run given ioEvent processing for the given connection.Transport.getWriter(Connection connection) Get theWriterto write data to theConnection.protected FutureImpl<Connection>AbstractSocketConnectorHandler.makeCancellableFuture(Connection connection) voidWriter.notifyWritePossible(Connection<L> connection, WriteHandler writeHandler) RegistersWriteHandler, which will be notified ones at least one byte can be written.Processor.obtainContext(Connection connection) CreatesContextStandaloneProcessor.obtainContext(Connection connection) AbstractTransport.obtainProcessor(IOEvent ioEvent, Connection connection) Gets the defaultProcessor, which will process TransportConnections I/O events in case, ifConnectiondoesn't have ownProcessorpreferences.Transport.obtainProcessor(IOEvent ioEvent, Connection connection) Gets the defaultProcessor, which will process TransportConnections I/O events in case, ifConnectiondoesn't have ownProcessorpreferences.voidConnectionProbe.Adapter.onAcceptEvent(Connection serverConnection, Connection clientConnection) Method will be called, when server side connection gets accepted.voidConnectionProbe.onAcceptEvent(Connection serverConnection, Connection clientConnection) Method will be called, when server side connection gets accepted.voidConnectionProbe.Adapter.onBindEvent(Connection connection) Method will be called, when server side connection gets bound.voidConnectionProbe.onBindEvent(Connection connection) Method will be called, when server side connection gets bound.voidConnection.CloseListener.onClosed(Connection connection, Connection.CloseType type) Deprecated.voidConnectionProbe.Adapter.onCloseEvent(Connection connection) Method will be called, whenConnectiongets closed.voidConnectionProbe.onCloseEvent(Connection connection) Method will be called, whenConnectiongets closed.voidConnectionProbe.Adapter.onConnectEvent(Connection connection) Method will be called, when client side connection gets connected (opened).voidConnectionProbe.onConnectEvent(Connection connection) Method will be called, when client side connection gets connected (opened).voidConnectionProbe.Adapter.onErrorEvent(Connection connection, Throwable error) Method will be called, when error occurs on theConnection.voidConnectionProbe.onErrorEvent(Connection connection, Throwable error) Method will be called, when error occurs on theConnection.voidConnectionProbe.Adapter.onIOEventDisableEvent(Connection connection, IOEvent ioEvent) Method will be called, whenIOEventfor the specificConnectiongets disabled.voidConnectionProbe.onIOEventDisableEvent(Connection connection, IOEvent ioEvent) Method will be called, whenIOEventfor the specificConnectiongets disabled.voidConnectionProbe.Adapter.onIOEventEnableEvent(Connection connection, IOEvent ioEvent) Method will be called, whenIOEventfor the specificConnectiongets enabled.voidConnectionProbe.onIOEventEnableEvent(Connection connection, IOEvent ioEvent) Method will be called, whenIOEventfor the specificConnectiongets enabled.voidConnectionProbe.Adapter.onIOEventReadyEvent(Connection connection, IOEvent ioEvent) Method will be called, whenIOEventfor the specificConnectiongets ready.voidConnectionProbe.onIOEventReadyEvent(Connection connection, IOEvent ioEvent) Method will be called, whenIOEventfor the specificConnectiongets ready.voidConnectionProbe.Adapter.onReadEvent(Connection connection, Buffer data, int size) Method will be called, when theConnectionhas read data.voidConnectionProbe.onReadEvent(Connection connection, Buffer data, int size) Method will be called, when theConnectionhas read data.voidConnectionProbe.Adapter.onWriteEvent(Connection connection, Buffer data, long size) Method will be called, when theConnectionhas written data.voidConnectionProbe.onWriteEvent(Connection connection, Buffer data, long size) Method will be called, when theConnectionhas written data.protected voidAbstractSocketConnectorHandler.preConfigure(Connection connection) Pre-configuresConnectionobject before actual connecting phase will be started.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.final 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) Reader.read(Connection<L> connection) Method reads data.Reader.read(Connection<L> connection, Buffer buffer) Method reads data to the buffer.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) ChainProcessorSelector.select(IOEvent ioEvent, Connection connection) SelectsProcessor, which will process connection event.DefaultProcessorSelector.select(IOEvent ioEvent, Connection connection) SelectsProcessor, which will process connection event.ProcessorSelector.select(IOEvent ioEvent, Connection connection) SelectsProcessor, which will process connection event.StandaloneProcessorSelector.select(IOEvent ioEvent, Connection connection) protected voidReadResult.set(Connection<L> connection, K message, L srcAddress, int readSize) One method to set all the WriteResult properties.protected voidWriteResult.set(Connection<L> connection, K message, L dstAddress, long writtenSize) One method to set all the WriteResult properties.voidContext.setConnection(Connection connection) Set the processingConnection.voidSocketBinder.unbind(Connection<?> connection) Unbinds boundTransportconnection.final GrizzlyFuture<WriteResult<WritableMessage,L>> AbstractWriter.write(Connection<L> connection, L dstAddress, WritableMessage message) Method writes theWritableMessageto the specific address.final voidAbstractWriter.write(Connection<L> connection, L dstAddress, WritableMessage message, CompletionHandler<WriteResult<WritableMessage, L>> completionHandler) Method writes theWritableMessageto the specific address.final GrizzlyFuture<WriteResult<WritableMessage,L>> AbstractWriter.write(Connection<L> connection, WritableMessage message) Method writes theWritableMessage.final 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.Writer.write(Connection<L> connection, L dstAddress, WritableMessage message) Method writes theWritableMessageto the specific address.voidWriter.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 deprecatedWriter.write(Connection<L> connection, WritableMessage message) Method writes theWritableMessage.voidWriter.write(Connection<L> connection, WritableMessage message, CompletionHandler<WriteResult<WritableMessage, L>> completionHandler) Method writes theWritableMessage.Method parameters in org.glassfish.grizzly with type arguments of type ConnectionModifier and TypeMethodDescriptionvoidAbstractSocketConnectorHandler.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) Constructors in org.glassfish.grizzly with parameters of type ConnectionModifierConstructorDescriptionprotectedReadResult(Connection<L> connection) protectedReadResult(Connection<L> connection, K message, L srcAddress, int readSize) -
Uses of Connection in org.glassfish.grizzly.asyncqueue
Fields in org.glassfish.grizzly.asyncqueue declared as ConnectionMethods in org.glassfish.grizzly.asyncqueue that return ConnectionMethods in org.glassfish.grizzly.asyncqueue with parameters of type ConnectionModifier and TypeMethodDescriptionbooleanAsyncQueueWriter.canWrite(Connection<L> connection, int size) Deprecated.the size parameter will be ignored, useWriter.canWrite(org.glassfish.grizzly.Connection)instead.MessageCloner.clone(Connection connection, E originalMessage) Method will be called byAsyncQueueWriter, when message could not be written directly, and will be added to the queue.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) booleanAsyncQueue.isReady(Connection connection) Checks whether there is ready data inAsyncQueue, associated with theConnection.voidAsyncQueueWriter.notifyWritePossible(Connection<L> connection, WriteHandler writeHandler, int size) Deprecated.the size parameter will be ignored, useinstead.voidPushBackHandler.onAccept(Connection connection, WritableMessage message) Deprecated.The method is invoked once message is accepted byWriter.voidAsyncQueue.onClose(Connection connection) Callback method, which is called, whenConnectionhas been closed, to let processor release a connection associated resources.voidPushBackHandler.onPushBack(Connection connection, WritableMessage message, PushBackContext pushBackContext) Deprecated.The method is invoked if message was refused byWriterdue to I/O or memory limitations.protected final 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) protected voidRecordReadResult.set(Connection<L> connection, K message, L srcAddress, int readSize) protected voidRecordWriteResult.set(Connection<L> connection, K message, L dstAddress, long writtenSize) 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 ConnectionModifierConstructorDescriptionAsyncQueueRecord(Connection connection, Object message, CompletionHandler completionHandler) protectedAsyncWriteQueueRecord(Connection connection, WritableMessage message, CompletionHandler completionHandler, Object dstAddress, PushBackHandler pushBackHandler, boolean isUncountable) -
Uses of Connection in org.glassfish.grizzly.filterchain
Methods in org.glassfish.grizzly.filterchain that return ConnectionModifier and TypeMethodDescriptionFilterChainContext.getConnection()Get theConnection, associated with the current processing.Methods in org.glassfish.grizzly.filterchain with parameters of type ConnectionModifier and TypeMethodDescriptionstatic FilterChainContextFilterChainContext.create(Connection connection) static FilterChainContextFilterChainContext.create(Connection connection, Closeable closeable) BaseFilter.createContext(Connection connection, FilterChainContext.Operation operation) 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) final ContextAbstractFilterChain.obtainContext(Connection connection) CreatesContextfinal FilterChainContextAbstractFilterChain.obtainFilterChainContext(Connection connection) AbstractFilterChain.obtainFilterChainContext(Connection connection, int startIdx, int endIdx, int currentIdx) AbstractFilterChain.obtainFilterChainContext(Connection connection, Closeable closeable) AbstractFilterChain.obtainFilterChainContext(Connection connection, Closeable closeable, int startIdx, int endIdx, int currentIdx) FilterChain.obtainFilterChainContext(Connection connection) FilterChain.obtainFilterChainContext(Connection connection, int startIdx, int endIdx, int currentIdx) FilterChain.obtainFilterChainContext(Connection connection, Closeable closeable) FilterChain.obtainFilterChainContext(Connection connection, Closeable closeable, int startIdx, int endIdx, int currentIdx) voidDefaultFilterChain.read(Connection connection, CompletionHandler<ReadResult> completionHandler) FilterChainProcessorSelector.select(IOEvent ioEvent, Connection connection) ReturnsFilterChaininstance, if it's interested in processing passedIOEvent, or null otherwise.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. -
Uses of Connection in org.glassfish.grizzly.nio
Classes in org.glassfish.grizzly.nio that implement ConnectionModifier and TypeClassDescriptionclassCommonConnectionimplementation for Java NIO Connections.Methods in org.glassfish.grizzly.nio with parameters of type ConnectionModifier and TypeMethodDescriptionbooleanAbstractNIOAsyncQueueWriter.canWrite(Connection<SocketAddress> connection) booleanAbstractNIOAsyncQueueWriter.canWrite(Connection<SocketAddress> connection, int size) Deprecated.protected abstract voidNIOTransport.closeConnection(Connection connection) protected AsyncWriteQueueRecordAbstractNIOAsyncQueueWriter.createRecord(Connection connection, WritableMessage message, CompletionHandler<WriteResult<WritableMessage, SocketAddress>> completionHandler, SocketAddress dstAddress, PushBackHandler pushBackHandler, boolean isUncountable) protected final intAbstractNIOAsyncQueueReader.doRead(Connection connection, AsyncReadQueueRecord queueRecord) Performs real read on the NIO channelfinal booleanAbstractNIOAsyncQueueReader.isReady(Connection connection) Checks whether there is ready data inAsyncQueue, associated with theConnection.final booleanAbstractNIOAsyncQueueWriter.isReady(Connection connection) Checks whether there is ready data inAsyncQueue, associated with theConnection.voidAbstractNIOAsyncQueueWriter.notifyWritePossible(Connection<SocketAddress> connection, WriteHandler writeHandler) voidAbstractNIOAsyncQueueWriter.notifyWritePossible(Connection<SocketAddress> connection, WriteHandler writeHandler, int size) Deprecated.voidAbstractNIOAsyncQueueReader.onClose(Connection connection) Callback method, which is called, whenConnectionhas been closed, to let processor release a connection associated resources.voidAbstractNIOAsyncQueueWriter.onClose(Connection connection) Callback method, which is called, whenConnectionhas been closed, to let processor release a connection associated resources.protected final voidAbstractNIOAsyncQueueReader.onReadFailure(Connection connection, AsyncReadQueueRecord failedRecord, IOException e) protected abstract voidAbstractNIOAsyncQueueReader.onReadyToRead(Connection connection) protected static voidAbstractNIOAsyncQueueWriter.onWriteFailure(Connection connection, AsyncWriteQueueRecord failedRecord, Throwable e) voidAbstractNIOAsyncQueueReader.read(Connection<SocketAddress> connection, Buffer buffer, CompletionHandler<ReadResult<Buffer, SocketAddress>> completionHandler, Interceptor<ReadResult> interceptor) Method reads data to the buffer.protected abstract intAbstractNIOAsyncQueueReader.read0(Connection connection, Buffer buffer, ReadResult<Buffer, SocketAddress> currentResult) 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. -
Uses of Connection in org.glassfish.grizzly.nio.tmpselectors
Methods in org.glassfish.grizzly.nio.tmpselectors with parameters of type ConnectionModifier and TypeMethodDescriptionprotected BufferTemporarySelectorReader.acquireBuffer(Connection connection) booleanTemporarySelectorWriter.canWrite(Connection connection) Returntrueif the connection has not exceeded it's maximum size in bytes of pending writes, otherwisefalse.voidTemporarySelectorWriter.notifyWritePossible(Connection connection, WriteHandler writeHandler) RegistersWriteHandler, which will be notified ones at least one byte can be written.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 Connection in org.glassfish.grizzly.nio.transport
Classes in org.glassfish.grizzly.nio.transport that implement ConnectionModifier and TypeClassDescriptionclassConnectionimplementation for theTCPNIOTransportfinal classclassConnectionimplementation for theUDPNIOTransportclassServerConnectionimplementation for theUDPNIOTransportMethods in org.glassfish.grizzly.nio.transport that return ConnectionMethods in org.glassfish.grizzly.nio.transport that return types with arguments of type ConnectionModifier 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.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) Methods in org.glassfish.grizzly.nio.transport with parameters of type ConnectionModifier and TypeMethodDescriptionprotected voidTCPNIOAsyncQueueReader.addRecord(Connection connection, Buffer buffer, CompletionHandler completionHandler, Interceptor<ReadResult> interceptor) protected voidUDPNIOAsyncQueueReader.addRecord(Connection connection, Buffer buffer, CompletionHandler completionHandler, Interceptor<ReadResult> interceptor) protected voidTCPNIOTransport.closeConnection(Connection connection) protected voidUDPNIOTransport.closeConnection(Connection connection) voidTCPNIOTransport.fireIOEvent(IOEvent ioEvent, Connection connection, IOEventLifeCycleListener listener) voidUDPNIOTransport.fireIOEvent(IOEvent ioEvent, Connection connection, IOEventLifeCycleListener listener) TCPNIOTransport.getReader(Connection connection) Get theReaderto read data from theConnection.UDPNIOTransport.getReader(Connection connection) Get theReaderto read data from theConnection.TCPNIOTransport.getWriter(Connection connection) Get theWriterto write data to theConnection.UDPNIOTransport.getWriter(Connection connection) Get theWriterto write data to theConnection.protected voidTCPNIOAsyncQueueReader.onReadyToRead(Connection connection) protected voidUDPNIOAsyncQueueReader.onReadyToRead(Connection connection) TCPNIOTransport.read(Connection connection, Buffer buffer) protected intTCPNIOAsyncQueueReader.read0(Connection connection, Buffer buffer, ReadResult<Buffer, SocketAddress> currentResult) protected intUDPNIOAsyncQueueReader.read0(Connection connection, Buffer buffer, ReadResult<Buffer, SocketAddress> currentResult) voidTCPNIOBindingHandler.unbind(Connection connection) voidTCPNIOTransport.unbind(Connection connection) Unbinds boundTransportconnection.voidUDPNIOBindingHandler.unbind(Connection connection) voidUDPNIOTransport.unbind(Connection connection) Unbinds boundTransportconnection.Method parameters in org.glassfish.grizzly.nio.transport with type arguments of type ConnectionModifier and TypeMethodDescriptionvoidTCPNIOConnectorHandler.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) protected static voidTCPNIOConnectorHandler.onConnectedAsync(TCPNIOConnection connection, CompletionHandler<Connection> completionHandler) protected voidTCPNIOConnectorHandler.waitNIOFuture(FutureImpl<Connection> future, CompletionHandler<Connection> completionHandler) protected voidTCPNIOConnectorHandler.waitNIOFuture(FutureImpl<Connection> future, CompletionHandler<Connection> completionHandler) protected voidUDPNIOConnectorHandler.waitNIOFuture(FutureImpl<Connection> future, CompletionHandler<Connection> completionHandler) protected voidUDPNIOConnectorHandler.waitNIOFuture(FutureImpl<Connection> future, CompletionHandler<Connection> completionHandler) Constructors in org.glassfish.grizzly.nio.transport with parameters of type ConnectionModifierConstructorDescriptionDefaultStreamReader(Connection connection) DefaultStreamWriter(Connection connection) Output(Connection connection) Constructor parameters in org.glassfish.grizzly.nio.transport with type arguments of type ConnectionModifierConstructorDescription -
Uses of Connection in org.glassfish.grizzly.ssl
Methods in org.glassfish.grizzly.ssl that return ConnectionMethods in org.glassfish.grizzly.ssl with parameters of type ConnectionModifier and TypeMethodDescriptionSSLBaseFilter.SSLTransportFilterWrapper.createContext(Connection connection, FilterChainContext.Operation operation) protected SSLConnectionContextSSLBaseFilter.createSslConnectionContext(Connection connection) static SSLConnectionContextSSLUtils.getSslConnectionContext(Connection connection) static SSLEngineSSLUtils.getSSLEngine(Connection connection) SSLCodec.handshake(Connection connection) SSLCodec.handshake(Connection connection, SSLEngineConfigurator configurator) 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) static BufferSSLUtils.handshakeWrap(Connection connection, SSLConnectionContext sslCtx, Buffer netBuffer) protected voidSSLBaseFilter.notifyHandshakeComplete(Connection<?> connection, SSLEngine sslEngine) protected voidSSLFilter.notifyHandshakeComplete(Connection<?> connection, SSLEngine sslEngine) protected voidSSLBaseFilter.notifyHandshakeFailed(Connection connection, Throwable t) protected voidSSLFilter.notifyHandshakeFailed(Connection connection, Throwable t) protected voidSSLBaseFilter.notifyHandshakeInit(Connection<?> connection, SSLEngine sslEngine) protected voidSSLBaseFilter.notifyHandshakeStart(Connection connection) protected SSLConnectionContextSSLBaseFilter.obtainSslConnectionContext(Connection connection) voidSSLBaseFilter.HandshakeListener.onComplete(Connection<?> connection) voidSSLBaseFilter.HandshakeListener.onFailure(Connection<?> connection, Throwable t) default voidSSLBaseFilter.HandshakeListener.onInit(Connection<?> connection, SSLEngine sslEngine) voidSSLBaseFilter.HandshakeListener.onStart(Connection<?> connection) static voidSSLUtils.setSSLEngine(Connection connection, SSLEngine sslEngine) Constructors in org.glassfish.grizzly.ssl with parameters of type ConnectionModifierConstructorDescriptionSSLConnectionContext(Connection connection) SSLSupportImpl(Connection connection) -
Uses of Connection in org.glassfish.grizzly.strategies
Methods in org.glassfish.grizzly.strategies with parameters of type ConnectionModifier and TypeMethodDescriptionfinal booleanAbstractIOStrategy.executeIoEvent(Connection connection, IOEvent ioEvent) booleanLeaderFollowerNIOStrategy.executeIoEvent(Connection connection, IOEvent ioEvent, boolean isIoEventEnabled) booleanSameThreadIOStrategy.executeIoEvent(Connection connection, IOEvent ioEvent, boolean isIoEventEnabled) booleanSimpleDynamicNIOStrategy.executeIoEvent(Connection connection, IOEvent ioEvent) booleanSimpleDynamicNIOStrategy.executeIoEvent(Connection connection, IOEvent ioEvent, boolean isIoEventEnabled) booleanWorkerThreadIOStrategy.executeIoEvent(Connection connection, IOEvent ioEvent, boolean isIoEventEnabled) protected static voidAbstractIOStrategy.fireIOEvent(Connection connection, IOEvent ioEvent, IOEventLifeCycleListener listener, Logger logger) AbstractIOStrategy.getThreadPoolFor(Connection connection, IOEvent ioEvent) SameThreadIOStrategy.getThreadPoolFor(Connection connection, IOEvent ioEvent) SimpleDynamicNIOStrategy.getThreadPoolFor(Connection connection, IOEvent ioEvent) -
Uses of Connection in org.glassfish.grizzly.streams
Fields in org.glassfish.grizzly.streams declared as ConnectionMethods in org.glassfish.grizzly.streams that return ConnectionModifier and TypeMethodDescriptionAbstractStreamReader.getConnection()Get theConnectionthis StreamReader belongs to.AbstractStreamWriter.getConnection()Get theConnectionthis StreamWriter belongs to.Stream.getConnection()Get theConnectionthis StreamReader belongs to.StreamWriter.getConnection()Get theConnectionthis StreamWriter belongs to.Constructors in org.glassfish.grizzly.streams with parameters of type ConnectionModifierConstructorDescriptionprotectedAbstractStreamReader(Connection connection, Input streamInput) Create a new ByteBufferReader.protectedAbstractStreamWriter(Connection connection, Output streamOutput) Create a new ByteBufferWriter.TransformerInput(Transformer<Buffer, Buffer> transformer, Input underlyingInput, Connection connection) TransformerOutput(Transformer<Buffer, Buffer> transformer, Output underlyingOutput, Connection connection) -
Uses of Connection in org.glassfish.grizzly.utils
Methods in org.glassfish.grizzly.utils that return types with arguments of type ConnectionMethods in org.glassfish.grizzly.utils with parameters of type ConnectionModifier and TypeMethodDescriptionvoidActivityCheckFilter.TimeoutHandler.onTimeout(Connection c) voidIdleTimeoutFilter.TimeoutHandler.onTimeout(Connection c) static voidIdleTimeoutFilter.setCustomTimeout(Connection connection, long timeout, TimeUnit timeunit) Provides an override mechanism for the default timeout.Constructor parameters in org.glassfish.grizzly.utils with type arguments of type ConnectionModifierConstructorDescriptionprotectedActivityCheckFilter(DelayedExecutor executor, DelayedExecutor.Worker<Connection> worker, long timeout, TimeUnit timeoutUnit) protectedIdleTimeoutFilter(DelayedExecutor executor, DelayedExecutor.Worker<Connection> worker, IdleTimeoutFilter.TimeoutResolver timeoutResolver)