Uses of Interface
org.glassfish.grizzly.Connection
-
-
Uses of Connection in org.glassfish.grizzly
Methods in org.glassfish.grizzly that return Connection Modifier and Type Method Description Connection<?>AbstractBindingHandler. bind(int port)Binds Transport to the specific port on localhost.Connection<?>AbstractBindingHandler. bind(String host, int port)Binds Transport to the specific host and port.Connection<?>AbstractBindingHandler. bind(String host, int port, int backlog)Binds Transport to the specific host and port.Connection<?>AbstractBindingHandler. bind(String host, PortRange portRange, boolean randomStartPort, int backlog)Connection<?>AbstractBindingHandler. bind(String host, PortRange portRange, int backlog)Binds Transport to the specific host, and port within aPortRange.Connection<?>SocketBinder. bind(int port)Binds Transport to the specific port on localhost.Connection<?>SocketBinder. bind(String host, int port)Binds Transport to the specific host and port.Connection<?>SocketBinder. bind(String host, int port, int backlog)Binds Transport to the specific host and port.Connection<?>SocketBinder. bind(String host, PortRange portRange, boolean randomStartPort, int backlog)Binds Transport to the specific host, and port within aPortRange.Connection<?>SocketBinder. bind(String host, PortRange portRange, int backlog)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.ConnectionContext. getConnection()Get the processingConnection.Connection<L>ReadResult. getConnection()Get theConnectiondata were read from.ConnectionResult. getConnection()GetConnection, associated with the result.Connection<L>WriteResult. getConnection()Get theConnectiondata were read from.Methods in org.glassfish.grizzly that return types with arguments of type Connection Modifier and Type Method Description Future<Connection>SocketAcceptor. accept()Accept aConnectionGrizzlyFuture<Connection>AbstractSocketConnectorHandler. connect(String host, int port)GrizzlyFuture<Connection>AbstractSocketConnectorHandler. connect(SocketAddress remoteAddress)GrizzlyFuture<Connection>AbstractSocketConnectorHandler. connect(SocketAddress remoteAddress, SocketAddress localAddress)Future<Connection>ConnectorHandler. connect(E remoteAddress)Creates, initializes and establishesConnectionto the specificremoteAddress.Future<Connection>ConnectorHandler. connect(E remoteAddress, E localAddress)Creates, initializesConnection, binds it to the specific local and remoteremoteAddress.Future<Connection>SocketConnectorHandler. connect(String host, int port)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 Connection Modifier and Type Method Description booleanWriter. 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 theConnectionReaderTransport. getReader(Connection connection)Get theReaderto read data from theConnection.StreamReaderStandaloneProcessor. getStreamReader(Connection connection)StreamWriterStandaloneProcessor. getStreamWriter(Connection connection)ExecutorIOStrategy. getThreadPoolFor(Connection connection, IOEvent ioEvent)Returns anExecutorto be used to run given ioEvent processing for the given connection.WriterTransport. 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.EProcessor. obtainContext(Connection connection)CreatesContextContextStandaloneProcessor. obtainContext(Connection connection)ProcessorAbstractTransport. obtainProcessor(IOEvent ioEvent, Connection connection)Gets the defaultProcessor, which will process TransportConnections I/O events in case, ifConnectiondoesn't have ownProcessorpreferences.ProcessorTransport. 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.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.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)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.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)ProcessorChainProcessorSelector. select(IOEvent ioEvent, Connection connection)SelectsProcessor, which will process connection event.ProcessorDefaultProcessorSelector. select(IOEvent ioEvent, Connection connection)SelectsProcessor, which will process connection event.ProcessorProcessorSelector. select(IOEvent ioEvent, Connection connection)SelectsProcessor, which will process connection event.ProcessorStandaloneProcessorSelector. 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.GrizzlyFuture<WriteResult<WritableMessage,L>>AbstractWriter. write(Connection<L> connection, L dstAddress, WritableMessage message)Method writes theWritableMessageto the specific address.voidAbstractWriter. write(Connection<L> connection, L dstAddress, WritableMessage message, CompletionHandler<WriteResult<WritableMessage,L>> completionHandler)Method writes theWritableMessageto the specific address.GrizzlyFuture<WriteResult<WritableMessage,L>>AbstractWriter. write(Connection<L> connection, WritableMessage message)Method writes theWritableMessage.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.GrizzlyFuture<WriteResult<WritableMessage,L>>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 deprecatedGrizzlyFuture<WriteResult<WritableMessage,L>>Writer. 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 Connection Modifier and Type Method Description voidAbstractSocketConnectorHandler. 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 Connection Constructor Description ReadResult(Connection<L> connection)ReadResult(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 Connection Modifier and Type Field Description protected ConnectionAsyncQueueRecord. connectionMethods in org.glassfish.grizzly.asyncqueue that return Connection Modifier and Type Method Description ConnectionAsyncQueueRecord. getConnection()Methods in org.glassfish.grizzly.asyncqueue with parameters of type Connection Modifier and Type Method Description booleanAsyncQueueWriter. canWrite(Connection<L> connection, int size)Deprecated.the size parameter will be ignored, useWriter.canWrite(org.glassfish.grizzly.Connection)instead.EMessageCloner. 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 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 Connection Constructor Description AsyncQueueRecord(Connection connection, Object message, CompletionHandler completionHandler)AsyncWriteQueueRecord(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 Connection Modifier and Type Method Description ConnectionFilterChainContext. getConnection()Get theConnection, associated with the current processing.Methods in org.glassfish.grizzly.filterchain with parameters of type Connection Modifier and Type Method Description static FilterChainContextFilterChainContext. create(Connection connection)static FilterChainContextFilterChainContext. create(Connection connection, Closeable closeable)FilterChainContextBaseFilter. 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)ContextAbstractFilterChain. obtainContext(Connection connection)CreatesContextFilterChainContextAbstractFilterChain. obtainFilterChainContext(Connection connection)FilterChainContextAbstractFilterChain. obtainFilterChainContext(Connection connection, int startIdx, int endIdx, int currentIdx)FilterChainContextAbstractFilterChain. obtainFilterChainContext(Connection connection, Closeable closeable)FilterChainContextAbstractFilterChain. obtainFilterChainContext(Connection connection, Closeable closeable, int startIdx, int endIdx, int currentIdx)FilterChainContextFilterChain. obtainFilterChainContext(Connection connection)FilterChainContextFilterChain. obtainFilterChainContext(Connection connection, int startIdx, int endIdx, int currentIdx)FilterChainContextFilterChain. obtainFilterChainContext(Connection connection, Closeable closeable)FilterChainContextFilterChain. obtainFilterChainContext(Connection connection, Closeable closeable, int startIdx, int endIdx, int currentIdx)voidDefaultFilterChain. read(Connection connection, CompletionHandler<ReadResult> completionHandler)ProcessorFilterChainProcessorSelector. 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 Connection Modifier and Type Class Description classNIOConnectionCommonConnectionimplementation for Java NIO Connections.Methods in org.glassfish.grizzly.nio with parameters of type Connection Modifier and Type Method Description booleanAbstractNIOAsyncQueueWriter. 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 intAbstractNIOAsyncQueueReader. doRead(Connection connection, AsyncReadQueueRecord queueRecord)Performs real read on the NIO channelbooleanAbstractNIOAsyncQueueReader. isReady(Connection connection)Checks whether there is ready data inAsyncQueue, associated with theConnection.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 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 Connection Modifier and Type Method Description protected 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 Connection Modifier and Type Class Description classTCPNIOConnectionConnectionimplementation for theTCPNIOTransportclassTCPNIOServerConnectionclassUDPNIOConnectionConnectionimplementation for theUDPNIOTransportclassUDPNIOServerConnectionServerConnectionimplementation for theUDPNIOTransportMethods in org.glassfish.grizzly.nio.transport that return Connection Modifier and Type Method Description Connection<?>UDPNIOTransport. bindToInherited()Methods in org.glassfish.grizzly.nio.transport that return types with arguments of type Connection 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.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 Connection Modifier and Type Method Description protected 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)Reader<SocketAddress>TCPNIOTransport. getReader(Connection connection)Get theReaderto read data from theConnection.ReaderUDPNIOTransport. getReader(Connection connection)Get theReaderto read data from theConnection.Writer<SocketAddress>TCPNIOTransport. getWriter(Connection connection)Get theWriterto write data to theConnection.WriterUDPNIOTransport. getWriter(Connection connection)Get theWriterto write data to theConnection.protected voidTCPNIOAsyncQueueReader. onReadyToRead(Connection connection)protected voidUDPNIOAsyncQueueReader. onReadyToRead(Connection connection)BufferTCPNIOTransport. 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 Connection Modifier and Type Method Description voidTCPNIOConnectorHandler. 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 Connection Constructor Description DefaultStreamReader(Connection connection)DefaultStreamWriter(Connection connection)Output(Connection connection)Constructor parameters in org.glassfish.grizzly.nio.transport with type arguments of type Connection Constructor Description RegisterAcceptedChannelCompletionHandler(FutureImpl<Connection> listener) -
Uses of Connection in org.glassfish.grizzly.ssl
Methods in org.glassfish.grizzly.ssl that return Connection Modifier and Type Method Description ConnectionSSLConnectionContext. getConnection()Methods in org.glassfish.grizzly.ssl with parameters of type Connection Modifier and Type Method Description FilterChainContextSSLBaseFilter.SSLTransportFilterWrapper. createContext(Connection connection, FilterChainContext.Operation operation)protected SSLConnectionContextSSLBaseFilter. createSslConnectionContext(Connection connection)static SSLConnectionContextSSLUtils. getSslConnectionContext(Connection connection)static SSLEngineSSLUtils. getSSLEngine(Connection connection)Future<SSLEngine>SSLCodec. handshake(Connection connection)Future<SSLEngine>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 Connection Constructor Description SSLConnectionContext(Connection connection)SSLSupportImpl(Connection connection) -
Uses of Connection in org.glassfish.grizzly.strategies
Methods in org.glassfish.grizzly.strategies with parameters of type Connection Modifier and Type Method Description 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)ExecutorAbstractIOStrategy. getThreadPoolFor(Connection connection, IOEvent ioEvent)ExecutorSameThreadIOStrategy. getThreadPoolFor(Connection connection, IOEvent ioEvent)ExecutorSimpleDynamicNIOStrategy. getThreadPoolFor(Connection connection, IOEvent ioEvent) -
Uses of Connection in org.glassfish.grizzly.streams
Fields in org.glassfish.grizzly.streams declared as Connection Modifier and Type Field Description protected ConnectionAbstractStreamReader. connectionMethods in org.glassfish.grizzly.streams that return Connection Modifier and Type Method Description ConnectionAbstractStreamReader. getConnection()Get theConnectionthis StreamReader belongs to.ConnectionAbstractStreamWriter. getConnection()Get theConnectionthis StreamWriter belongs to.ConnectionStream. getConnection()Get theConnectionthis StreamReader belongs to.ConnectionStreamWriter. getConnection()Get theConnectionthis StreamWriter belongs to.Constructors in org.glassfish.grizzly.streams with parameters of type Connection Constructor Description AbstractStreamReader(Connection connection, Input streamInput)Create a new ByteBufferReader.AbstractStreamWriter(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 Connection Modifier and Type Method Description DelayedExecutor.Resolver<Connection>IdleTimeoutFilter. getResolver()Methods in org.glassfish.grizzly.utils with parameters of type Connection Modifier and Type Method Description voidActivityCheckFilter.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 Connection Constructor Description ActivityCheckFilter(DelayedExecutor executor, DelayedExecutor.Worker<Connection> worker, long timeout, TimeUnit timeoutUnit)IdleTimeoutFilter(DelayedExecutor executor, DelayedExecutor.Worker<Connection> worker, IdleTimeoutFilter.TimeoutResolver timeoutResolver)
-