|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Uses of Connection in org.glassfish.grizzly |
|---|
| Methods in org.glassfish.grizzly that return Connection | |
|---|---|
Connection |
SocketBinder.bind(int port)
Binds Transport to the specific port on localhost. |
Connection |
SocketBinder.bind(java.net.SocketAddress socketAddress)
Binds Transport to the specific SocketAddress. |
Connection |
SocketBinder.bind(java.net.SocketAddress socketAddress,
int backlog)
Binds Transport to the specific SocketAddress. |
Connection |
SocketBinder.bind(java.lang.String host,
int port)
Binds Transport to the specific host and port. |
Connection |
SocketBinder.bind(java.lang.String host,
int port,
int backlog)
Binds Transport to the specific host and port. |
Connection |
SocketBinder.bind(java.lang.String host,
PortRange portRange,
int backlog)
Binds Transport to the specific host, and port within a PortRange. |
Connection |
WriteResult.getConnection()
Get the Connection data were read from. |
Connection |
Result.getConnection()
Get Connection, associated with the result. |
Connection |
ReadResult.getConnection()
Get the Connection data were read from. |
Connection |
Context.getConnection()
Get the processing Connection. |
| Methods in org.glassfish.grizzly that return types with arguments of type Connection | |
|---|---|
java.util.concurrent.Future<Connection> |
SocketAcceptor.accept()
Accept a Connection |
GrizzlyFuture<Connection> |
Connection.close()
Close the Connection |
java.util.concurrent.Future<Connection> |
ConnectorHandler.connect(E remoteAddress)
Creates, initializes and connects socket to the specific SocketAddress and returns Connection, representing socket. |
java.util.concurrent.Future<Connection> |
ConnectorHandler.connect(E remoteAddress,
E localAddress)
Creates, initializes socket, binds it to the specific local and remote SocketAddress and returns Connection, representing socket. |
GrizzlyFuture<Connection> |
AbstractSocketConnectorHandler.connect(java.net.SocketAddress remoteAddress)
|
GrizzlyFuture<Connection> |
AbstractSocketConnectorHandler.connect(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress)
|
java.util.concurrent.Future<Connection> |
SocketConnectorHandler.connect(java.lang.String host,
int port)
Creates, initializes and connects socket to the specific remote host and port and returns Connection, representing socket. |
GrizzlyFuture<Connection> |
AbstractSocketConnectorHandler.connect(java.lang.String host,
int port)
|
| Methods in org.glassfish.grizzly with parameters of type Connection | ||
|---|---|---|
protected abstract void |
AbstractTransport.closeConnection(Connection connection)
Close the connection, managed by Transport |
|
static Context |
Context.create(Connection connection)
|
|
static
|
WriteResult.create(Connection connection)
|
|
static
|
ReadResult.create(Connection connection)
|
|
static
|
WriteResult.create(Connection connection,
K message,
L dstAddress,
int writeSize)
|
|
static
|
ReadResult.create(Connection connection,
K message,
L srcAddress,
int readSize)
|
|
static Context |
Context.create(Connection connection,
Processor processor,
IOEvent ioEvent,
IOEventProcessingHandler processingHandler)
|
|
static void |
ProcessorExecutor.execute(Connection connection,
IOEvent ioEvent,
Processor processor,
IOEventProcessingHandler processingHandler)
|
|
boolean |
IOStrategy.executeIoEvent(Connection connection,
IOEvent ioEvent)
The SelectorRunner will invoke this
method to allow the strategy implementation to decide how the
IOEvent will be handled. |
|
boolean |
IOStrategy.executeIoEvent(Connection connection,
IOEvent ioEvent,
boolean isIoEventEnabled)
The SelectorRunner will invoke this
method to allow the strategy implementation to decide how the
IOEvent will be handled. |
|
void |
Transport.fireIOEvent(IOEvent ioEvent,
Connection connection,
IOEventProcessingHandler processingHandler)
Fires specific IOEvent on the Connection |
|
Reader |
Transport.getReader(Connection connection)
Get the Reader to read data from the Connection. |
|
StreamReader |
StandaloneProcessor.getStreamReader(Connection connection)
Get the Connection StreamReader, to read data from the
Connection. |
|
StreamWriter |
StandaloneProcessor.getStreamWriter(Connection connection)
Get the Connection StreamWriter, to write data to the
Connection. |
|
Writer |
Transport.getWriter(Connection connection)
Get the Writer to write data to the Connection. |
|
Context |
StandaloneProcessor.obtainContext(Connection connection)
|
|
E |
Processor.obtainContext(Connection connection)
Creates Context |
|
Processor |
Transport.obtainProcessor(IOEvent ioEvent,
Connection connection)
Gets the default Processor, which will process Transport
Connections I/O events in case, if Connection
doesn't have own Processor preferences. |
|
Processor |
AbstractTransport.obtainProcessor(IOEvent ioEvent,
Connection connection)
Gets the default Processor, which will process Transport
Connections I/O events in case, if Connection
doesn't have own Processor preferences. |
|
void |
ConnectionProbe.onAcceptEvent(Connection serverConnection,
Connection clientConnection)
Method will be called, when server side connection gets accepted. |
|
void |
ConnectionProbe.onAcceptEvent(Connection serverConnection,
Connection clientConnection)
Method will be called, when server side connection gets accepted. |
|
void |
ConnectionProbe.Adapter.onAcceptEvent(Connection serverConnection,
Connection clientConnection)
Method will be called, when server side connection gets accepted. |
|
void |
ConnectionProbe.Adapter.onAcceptEvent(Connection serverConnection,
Connection clientConnection)
Method will be called, when server side connection gets accepted. |
|
void |
ConnectionProbe.onBindEvent(Connection connection)
Method will be called, when server side connection gets bound. |
|
void |
ConnectionProbe.Adapter.onBindEvent(Connection connection)
Method will be called, when server side connection gets bound. |
|
void |
Connection.CloseListener.onClosed(Connection connection,
Connection.CloseType type)
|
|
void |
ConnectionProbe.onCloseEvent(Connection connection)
Method will be called, when Connection gets closed. |
|
void |
ConnectionProbe.Adapter.onCloseEvent(Connection connection)
Method will be called, when Connection gets closed. |
|
void |
ConnectionProbe.onConnectEvent(Connection connection)
Method will be called, when client side connection gets connected (opened). |
|
void |
ConnectionProbe.Adapter.onConnectEvent(Connection connection)
Method will be called, when client side connection gets connected (opened). |
|
void |
ConnectionProbe.onErrorEvent(Connection connection,
java.lang.Throwable error)
Method will be called, when error occurs on the Connection. |
|
void |
ConnectionProbe.Adapter.onErrorEvent(Connection connection,
java.lang.Throwable error)
Method will be called, when error occurs on the Connection. |
|
void |
ConnectionProbe.onIOEventDisableEvent(Connection connection,
IOEvent ioEvent)
Method will be called, when IOEvent for the specific
Connection gets disabled. |
|
void |
ConnectionProbe.Adapter.onIOEventDisableEvent(Connection connection,
IOEvent ioEvent)
Method will be called, when IOEvent for the specific
Connection gets disabled. |
|
void |
ConnectionProbe.onIOEventEnableEvent(Connection connection,
IOEvent ioEvent)
Method will be called, when IOEvent for the specific
Connection gets enabled. |
|
void |
ConnectionProbe.Adapter.onIOEventEnableEvent(Connection connection,
IOEvent ioEvent)
Method will be called, when IOEvent for the specific
Connection gets enabled. |
|
void |
ConnectionProbe.onIOEventReadyEvent(Connection connection,
IOEvent ioEvent)
Method will be called, when IOEvent for the specific
Connection gets ready. |
|
void |
ConnectionProbe.Adapter.onIOEventReadyEvent(Connection connection,
IOEvent ioEvent)
Method will be called, when IOEvent for the specific
Connection gets ready. |
|
void |
ConnectionProbe.onReadEvent(Connection connection,
Buffer data,
int size)
Method will be called, when the Connection has read data. |
|
void |
ConnectionProbe.Adapter.onReadEvent(Connection connection,
Buffer data,
int size)
Method will be called, when the Connection has read data. |
|
void |
ConnectionProbe.onWriteEvent(Connection connection,
Buffer data,
long size)
Method will be called, when the Connection has written data. |
|
void |
ConnectionProbe.Adapter.onWriteEvent(Connection connection,
Buffer data,
long size)
Method will be called, when the Connection has written data. |
|
protected void |
AbstractSocketConnectorHandler.preConfigure(Connection connection)
Pre-configures Connection object before actual connecting phase
will be started. |
|
GrizzlyFuture<ReadResult<Buffer,L>> |
Reader.read(Connection connection)
Method reads data. |
|
GrizzlyFuture<ReadResult<Buffer,L>> |
AbstractReader.read(Connection connection)
Method reads data. |
|
GrizzlyFuture<ReadResult<Buffer,L>> |
Reader.read(Connection connection,
Buffer buffer)
Method reads data to the buffer. |
|
GrizzlyFuture<ReadResult<Buffer,L>> |
AbstractReader.read(Connection connection,
Buffer buffer)
Method reads data to the buffer. |
|
void |
Reader.read(Connection connection,
Buffer buffer,
CompletionHandler<ReadResult<Buffer,L>> completionHandler)
Method reads data to the buffer. |
|
void |
AbstractReader.read(Connection connection,
Buffer buffer,
CompletionHandler<ReadResult<Buffer,L>> completionHandler)
Method reads data to the buffer. |
|
void |
Reader.read(Connection connection,
Buffer buffer,
CompletionHandler<ReadResult<Buffer,L>> completionHandler,
Interceptor<ReadResult> interceptor)
Method reads data to the buffer. |
|
void |
StandaloneProcessor.read(Connection connection,
CompletionHandler completionHandler)
|
|
void |
Processor.read(Connection connection,
CompletionHandler<ReadResult> completionHandler)
|
|
Processor |
StandaloneProcessorSelector.select(IOEvent ioEvent,
Connection connection)
Always return null, which means no Processor was found to process
IOEvent. |
|
Processor |
ProcessorSelector.select(IOEvent ioEvent,
Connection connection)
Selects Processor, which will process connection event. |
|
Processor |
DefaultProcessorSelector.select(IOEvent ioEvent,
Connection connection)
Selects Processor, which will process connection event. |
|
Processor |
ChainProcessorSelector.select(IOEvent ioEvent,
Connection connection)
Selects Processor, which will process connection event. |
|
void |
Context.setConnection(Connection connection)
Set the processing Connection. |
|
void |
SocketBinder.unbind(Connection connection)
Unbinds bound Transport connection. |
|
GrizzlyFuture<WriteResult<WritableMessage,L>> |
Writer.write(Connection connection,
L dstAddress,
WritableMessage message)
Method writes the WritableMessage to the specific address. |
|
GrizzlyFuture<WriteResult<WritableMessage,L>> |
AbstractWriter.write(Connection connection,
L dstAddress,
WritableMessage message)
Method writes the WritableMessage to the specific address. |
|
void |
Writer.write(Connection connection,
L dstAddress,
WritableMessage message,
CompletionHandler<WriteResult<WritableMessage,L>> completionHandler)
Method writes the WritableMessage to the specific address. |
|
void |
AbstractWriter.write(Connection connection,
L dstAddress,
WritableMessage message,
CompletionHandler<WriteResult<WritableMessage,L>> completionHandler)
Method writes the WritableMessage to the specific address. |
|
void |
Writer.write(Connection connection,
L dstAddress,
WritableMessage message,
CompletionHandler<WriteResult<WritableMessage,L>> completionHandler,
PushBackHandler pushBackHandler)
Method writes the WritableMessage to the specific address. |
|
void |
Processor.write(Connection connection,
java.lang.Object dstAddress,
java.lang.Object message,
CompletionHandler<WriteResult> completionHandler,
PushBackHandler pushBackHandler)
|
|
void |
StandaloneProcessor.write(Connection connection,
java.lang.Object dstAddress,
java.lang.Object message,
CompletionHandler completionHandler,
PushBackHandler pushBackHandler)
|
|
GrizzlyFuture<WriteResult<WritableMessage,L>> |
Writer.write(Connection connection,
WritableMessage message)
Method writes the WritableMessage. |
|
GrizzlyFuture<WriteResult<WritableMessage,L>> |
AbstractWriter.write(Connection connection,
WritableMessage message)
Method writes the WritableMessage. |
|
void |
Writer.write(Connection connection,
WritableMessage message,
CompletionHandler<WriteResult<WritableMessage,L>> completionHandler)
Method writes the WritableMessage. |
|
void |
AbstractWriter.write(Connection connection,
WritableMessage message,
CompletionHandler<WriteResult<WritableMessage,L>> completionHandler)
Method writes the WritableMessage. |
|
| Method parameters in org.glassfish.grizzly with type arguments of type Connection | |
|---|---|
void |
Connection.close(CompletionHandler<Connection> completionHandler)
Close the Connection |
void |
ConnectorHandler.connect(E remoteAddress,
CompletionHandler<Connection> completionHandler)
Creates, initializes and connects socket to the specific SocketAddress and returns Connection, representing socket. |
void |
ConnectorHandler.connect(E remoteAddress,
E localAddress,
CompletionHandler<Connection> completionHandler)
Creates, initializes socket, binds it to the specific local and remote SocketAddress and returns Connection, representing socket. |
void |
AbstractSocketConnectorHandler.connect(java.net.SocketAddress remoteAddress,
CompletionHandler<Connection> completionHandler)
|
abstract void |
AbstractSocketConnectorHandler.connect(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress,
CompletionHandler<Connection> completionHandler)
|
| Constructors in org.glassfish.grizzly with parameters of type Connection | |
|---|---|
ReadResult(Connection connection)
|
|
ReadResult(Connection connection,
K message,
L srcAddress,
int readSize)
|
|
| Uses of Connection in org.glassfish.grizzly.asyncqueue |
|---|
| Fields in org.glassfish.grizzly.asyncqueue declared as Connection | |
|---|---|
protected Connection |
AsyncQueueRecord.connection
|
| Methods in org.glassfish.grizzly.asyncqueue that return Connection | |
|---|---|
Connection |
AsyncQueueRecord.getConnection()
|
| Methods in org.glassfish.grizzly.asyncqueue with parameters of type Connection | |
|---|---|
boolean |
AsyncQueueWriter.canWrite(Connection connection,
int size)
|
E |
MessageCloner.clone(Connection connection,
E originalMessage)
Method will be called by AsyncQueueWriter, when message
could not be written directly, and will be added to the queue. |
static AsyncReadQueueRecord |
AsyncReadQueueRecord.create(Connection connection,
Buffer message,
ReadResult currentResult,
CompletionHandler completionHandler,
Interceptor<ReadResult> interceptor)
|
static AsyncWriteQueueRecord |
AsyncWriteQueueRecord.create(Connection connection,
WritableMessage message,
WriteResult currentResult,
CompletionHandler completionHandler,
java.lang.Object dstAddress,
PushBackHandler pushbackHandler,
boolean isEmptyRecord)
|
boolean |
AsyncQueue.isReady(Connection connection)
Checks whether there is ready data in AsyncQueue,
associated with the Connection. |
void |
AsyncQueueWriter.notifyWritePossible(Connection connection,
WriteHandler writeHandler,
int size)
Registers WriteHandler, which will be notified ones Buffer
of "size"-bytes can be written. |
void |
PushBackHandler.onAccept(Connection connection,
WritableMessage message)
The method is invoked once message is accepted by Writer. |
void |
AsyncQueue.onClose(Connection connection)
Callback method, which is called, when Connection has been closed,
to let processor release a connection associated resources. |
void |
PushBackHandler.onPushBack(Connection connection,
WritableMessage message,
PushBackContext pushBackContext)
The method is invoked if message was refused by Writer
due to I/O or memory limitations. |
protected void |
AsyncQueueRecord.set(Connection connection,
java.lang.Object message,
R currentResult,
CompletionHandler completionHandler)
|
protected void |
AsyncWriteQueueRecord.set(Connection connection,
WritableMessage message,
WriteResult currentResult,
CompletionHandler completionHandler,
java.lang.Object dstAddress,
PushBackHandler pushBackHandler,
boolean isEmptyRecord)
|
void |
AsyncQueueWriter.write(Connection connection,
java.net.SocketAddress dstAddress,
WritableMessage message,
CompletionHandler<WriteResult<WritableMessage,java.net.SocketAddress>> completionHandler,
PushBackHandler pushBackHandler,
MessageCloner<WritableMessage> cloner)
Method writes the Buffer to the specific address. |
| Constructors in org.glassfish.grizzly.asyncqueue with parameters of type Connection | |
|---|---|
AsyncQueueRecord(Connection connection,
java.lang.Object message,
R currentResult,
CompletionHandler completionHandler)
|
|
AsyncWriteQueueRecord(Connection connection,
WritableMessage message,
WriteResult currentResult,
CompletionHandler completionHandler,
java.lang.Object dstAddress,
PushBackHandler pushBackHandler,
boolean isEmptyRecord)
|
|
| Uses of Connection in org.glassfish.grizzly.filterchain |
|---|
| Methods in org.glassfish.grizzly.filterchain that return Connection | |
|---|---|
Connection |
FilterChainContext.getConnection()
Get the Connection, associated with the current processing. |
| Methods in org.glassfish.grizzly.filterchain with parameters of type Connection | |
|---|---|
static FilterChainContext |
FilterChainContext.create(Connection connection)
|
FilterChainContext |
BaseFilter.createContext(Connection connection,
FilterChainContext.Operation operation)
|
void |
FilterChain.fireEventDownstream(Connection connection,
FilterChainEvent event,
CompletionHandler<FilterChainContext> completionHandler)
|
void |
DefaultFilterChain.fireEventDownstream(Connection connection,
FilterChainEvent event,
CompletionHandler<FilterChainContext> completionHandler)
|
void |
FilterChain.fireEventUpstream(Connection connection,
FilterChainEvent event,
CompletionHandler<FilterChainContext> completionHandler)
|
void |
DefaultFilterChain.fireEventUpstream(Connection connection,
FilterChainEvent event,
CompletionHandler<FilterChainContext> completionHandler)
|
void |
FilterChain.flush(Connection connection,
CompletionHandler<WriteResult> completionHandler)
|
void |
DefaultFilterChain.flush(Connection connection,
CompletionHandler<WriteResult> completionHandler)
|
Context |
AbstractFilterChain.obtainContext(Connection connection)
Creates Context |
FilterChainContext |
FilterChain.obtainFilterChainContext(Connection connection)
|
FilterChainContext |
AbstractFilterChain.obtainFilterChainContext(Connection connection)
|
void |
DefaultFilterChain.read(Connection connection,
CompletionHandler<ReadResult> completionHandler)
|
Processor |
FilterChainProcessorSelector.select(IOEvent ioEvent,
Connection connection)
Returns FilterChain instance, if it's interested in processing
passed IOEvent, or null otherwise. |
void |
DefaultFilterChain.write(Connection connection,
java.lang.Object dstAddress,
java.lang.Object message,
CompletionHandler completionHandler,
PushBackHandler pushBackHandler)
|
| Uses of Connection in org.glassfish.grizzly.nio |
|---|
| Classes in org.glassfish.grizzly.nio that implement Connection | |
|---|---|
class |
NIOConnection
Common Connection implementation for Java NIO Connections. |
| Methods in org.glassfish.grizzly.nio that return types with arguments of type Connection | |
|---|---|
GrizzlyFuture<Connection> |
NIOConnection.close()
|
| Methods in org.glassfish.grizzly.nio with parameters of type Connection | |
|---|---|
boolean |
AbstractNIOAsyncQueueWriter.canWrite(Connection connection,
int size)
|
protected abstract void |
NIOTransport.closeConnection(Connection connection)
|
protected AsyncWriteQueueRecord |
AbstractNIOAsyncQueueWriter.createRecord(Connection connection,
WritableMessage message,
WriteResult<WritableMessage,java.net.SocketAddress> currentResult,
CompletionHandler<WriteResult<WritableMessage,java.net.SocketAddress>> completionHandler,
java.net.SocketAddress dstAddress,
PushBackHandler pushBackHandler,
boolean isEmptyRecord)
|
protected int |
AbstractNIOAsyncQueueReader.doRead(Connection connection,
AsyncReadQueueRecord queueRecord)
Performs real read on the NIO channel |
boolean |
AbstractNIOAsyncQueueWriter.isReady(Connection connection)
Checks whether there is ready data in AsyncQueue,
associated with the Connection. |
boolean |
AbstractNIOAsyncQueueReader.isReady(Connection connection)
Checks whether there is ready data in AsyncQueue,
associated with the Connection. |
void |
AbstractNIOAsyncQueueWriter.notifyWritePossible(Connection connection,
WriteHandler writeHandler,
int size)
Registers WriteHandler, which will be notified ones Buffer
of "size"-bytes can be written. |
void |
AbstractNIOAsyncQueueWriter.onClose(Connection connection)
Callback method, which is called, when Connection has been closed,
to let processor release a connection associated resources. |
void |
AbstractNIOAsyncQueueReader.onClose(Connection connection)
Callback method, which is called, when Connection has been closed,
to let processor release a connection associated resources. |
protected void |
AbstractNIOAsyncQueueReader.onReadFailure(Connection connection,
AsyncReadQueueRecord failedRecord,
java.io.IOException e)
|
protected abstract void |
AbstractNIOAsyncQueueReader.onReadyToRead(Connection connection)
|
protected static void |
AbstractNIOAsyncQueueWriter.onWriteFailure(Connection connection,
AsyncWriteQueueRecord failedRecord,
java.lang.Throwable e)
|
void |
AbstractNIOAsyncQueueReader.read(Connection connection,
Buffer buffer,
CompletionHandler<ReadResult<Buffer,java.net.SocketAddress>> completionHandler,
Interceptor<ReadResult> interceptor)
Method reads data to the buffer. |
protected abstract int |
AbstractNIOAsyncQueueReader.read0(Connection connection,
Buffer buffer,
ReadResult<Buffer,java.net.SocketAddress> currentResult)
|
void |
AbstractNIOAsyncQueueWriter.write(Connection connection,
java.net.SocketAddress dstAddress,
WritableMessage message,
CompletionHandler<WriteResult<WritableMessage,java.net.SocketAddress>> completionHandler,
PushBackHandler pushBackHandler)
|
void |
AbstractNIOAsyncQueueWriter.write(Connection connection,
java.net.SocketAddress dstAddress,
WritableMessage message,
CompletionHandler<WriteResult<WritableMessage,java.net.SocketAddress>> completionHandler,
PushBackHandler pushBackHandler,
MessageCloner<WritableMessage> cloner)
Method writes the Buffer to the specific address. |
| Method parameters in org.glassfish.grizzly.nio with type arguments of type Connection | |
|---|---|
void |
NIOConnection.close(CompletionHandler<Connection> completionHandler)
|
protected void |
NIOConnection.close0(CompletionHandler<Connection> completionHandler,
boolean isClosedLocally)
|
| Uses of Connection in org.glassfish.grizzly.nio.tmpselectors |
|---|
| Methods in org.glassfish.grizzly.nio.tmpselectors with parameters of type Connection | |
|---|---|
protected Buffer |
TemporarySelectorReader.acquireBuffer(Connection connection)
|
void |
TemporarySelectorReader.read(Connection connection,
Buffer message,
CompletionHandler<ReadResult<Buffer,java.net.SocketAddress>> completionHandler,
Interceptor<ReadResult> interceptor)
|
void |
TemporarySelectorReader.read(Connection connection,
Buffer message,
CompletionHandler<ReadResult<Buffer,java.net.SocketAddress>> completionHandler,
Interceptor<ReadResult> interceptor,
long timeout,
java.util.concurrent.TimeUnit timeunit)
Method reads data to the message. |
void |
TemporarySelectorWriter.write(Connection connection,
java.net.SocketAddress dstAddress,
WritableMessage message,
CompletionHandler<WriteResult<WritableMessage,java.net.SocketAddress>> completionHandler,
PushBackHandler pushBackHandler)
Method writes the WritableMessage to the specific address. |
void |
TemporarySelectorWriter.write(Connection connection,
java.net.SocketAddress dstAddress,
WritableMessage message,
CompletionHandler<WriteResult<WritableMessage,java.net.SocketAddress>> completionHandler,
PushBackHandler pushBackHandler,
long timeout,
java.util.concurrent.TimeUnit timeunit)
Method writes the WritableMessage to the specific address. |
| Uses of Connection in org.glassfish.grizzly.nio.transport |
|---|
| Classes in org.glassfish.grizzly.nio.transport that implement Connection | |
|---|---|
class |
TCPNIOConnection
Connection implementation
for the TCPNIOTransport |
class |
TCPNIOServerConnection
|
class |
UDPNIOConnection
Connection implementation
for the UDPNIOTransport |
class |
UDPNIOServerConnection
Server Connection implementation
for the UDPNIOTransport |
| Methods in org.glassfish.grizzly.nio.transport that return types with arguments of type Connection | |
|---|---|
GrizzlyFuture<Connection> |
TCPNIOServerConnection.accept()
Accept a Connection. |
protected GrizzlyFuture<Connection> |
TCPNIOServerConnection.acceptAsync()
Asynchronously accept a Connection |
GrizzlyFuture<Connection> |
UDPNIOTransport.connect()
Creates non-connected UDP Connection. |
GrizzlyFuture<Connection> |
UDPNIOConnectorHandler.connect()
Creates non-connected UDP Connection. |
GrizzlyFuture<Connection> |
UDPNIOTransport.connect(java.net.SocketAddress remoteAddress)
Creates, initializes and connects socket to the specific SocketAddress and returns Connection, representing socket. |
GrizzlyFuture<Connection> |
TCPNIOTransport.connect(java.net.SocketAddress remoteAddress)
Creates, initializes and connects socket to the specific SocketAddress and returns Connection, representing socket. |
GrizzlyFuture<Connection> |
UDPNIOTransport.connect(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress)
Creates, initializes socket, binds it to the specific local and remote SocketAddress and returns Connection, representing socket. |
GrizzlyFuture<Connection> |
TCPNIOTransport.connect(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress)
Creates, initializes socket, binds it to the specific local and remote SocketAddress and returns Connection, representing socket. |
GrizzlyFuture<Connection> |
UDPNIOTransport.connect(java.lang.String host,
int port)
Creates, initializes and connects socket to the specific remote host and port and returns Connection, representing socket. |
GrizzlyFuture<Connection> |
TCPNIOTransport.connect(java.lang.String host,
int port)
Creates, initializes and connects socket to the specific remote host and port and returns Connection, representing socket. |
| Methods in org.glassfish.grizzly.nio.transport with parameters of type Connection | |
|---|---|
protected void |
UDPNIOAsyncQueueReader.addRecord(Connection connection,
Buffer buffer,
CompletionHandler completionHandler,
Interceptor<ReadResult> interceptor)
|
protected void |
TCPNIOAsyncQueueReader.addRecord(Connection connection,
Buffer buffer,
CompletionHandler completionHandler,
Interceptor<ReadResult> interceptor)
|
protected void |
UDPNIOTransport.closeConnection(Connection connection)
|
protected void |
TCPNIOTransport.closeConnection(Connection connection)
|
void |
UDPNIOTransport.fireIOEvent(IOEvent ioEvent,
Connection connection,
IOEventProcessingHandler processingHandler)
|
void |
TCPNIOTransport.fireIOEvent(IOEvent ioEvent,
Connection connection,
IOEventProcessingHandler processingHandler)
|
Reader |
UDPNIOTransport.getReader(Connection connection)
Get the Reader to read data from the Connection. |
Reader<java.net.SocketAddress> |
TCPNIOTransport.getReader(Connection connection)
Get the Reader to read data from the Connection. |
Writer |
UDPNIOTransport.getWriter(Connection connection)
Get the Writer to write data to the Connection. |
Writer<java.net.SocketAddress> |
TCPNIOTransport.getWriter(Connection connection)
Get the Writer to write data to the Connection. |
protected void |
UDPNIOAsyncQueueReader.onReadyToRead(Connection connection)
|
protected void |
TCPNIOAsyncQueueReader.onReadyToRead(Connection connection)
|
Buffer |
TCPNIOTransport.read(Connection connection,
Buffer buffer)
|
protected int |
UDPNIOAsyncQueueReader.read0(Connection connection,
Buffer buffer,
ReadResult<Buffer,java.net.SocketAddress> currentResult)
|
protected int |
TCPNIOAsyncQueueReader.read0(Connection connection,
Buffer buffer,
ReadResult<Buffer,java.net.SocketAddress> currentResult)
|
void |
UDPNIOTransport.unbind(Connection connection)
Unbinds bound Transport connection. |
void |
TCPNIOTransport.unbind(Connection connection)
Unbinds bound Transport connection. |
int |
TCPNIOTransport.write(Connection connection,
WritableMessage message)
|
int |
TCPNIOTransport.write(Connection connection,
WritableMessage message,
WriteResult currentResult)
|
| Method parameters in org.glassfish.grizzly.nio.transport with type arguments of type Connection | |
|---|---|
void |
UDPNIOServerConnection.close(CompletionHandler<Connection> completionHandler)
|
protected void |
TCPNIOConnection.close0(CompletionHandler<Connection> completionHandler,
boolean isClosedLocally)
|
void |
UDPNIOTransport.connect(java.net.SocketAddress remoteAddress,
CompletionHandler<Connection> completionHandler)
Creates, initializes and connects socket to the specific SocketAddress and returns Connection, representing socket. |
void |
TCPNIOTransport.connect(java.net.SocketAddress remoteAddress,
CompletionHandler<Connection> completionHandler)
Creates, initializes and connects socket to the specific SocketAddress and returns Connection, representing socket. |
void |
UDPNIOTransport.connect(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress,
CompletionHandler<Connection> completionHandler)
Creates, initializes socket, binds it to the specific local and remote SocketAddress and returns Connection, representing socket. |
void |
UDPNIOConnectorHandler.connect(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress,
CompletionHandler<Connection> completionHandler)
|
void |
TCPNIOTransport.connect(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress,
CompletionHandler<Connection> completionHandler)
Creates, initializes socket, binds it to the specific local and remote SocketAddress and returns Connection, representing socket. |
void |
TCPNIOConnectorHandler.connect(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress,
CompletionHandler<Connection> completionHandler)
|
protected void |
UDPNIOConnectorHandler.connectAsync(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress,
CompletionHandler<Connection> completionHandler)
|
protected void |
TCPNIOConnectorHandler.connectAsync(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress,
CompletionHandler<Connection> completionHandler)
|
protected void |
UDPNIOConnectorHandler.connectSync(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress,
CompletionHandler<Connection> completionHandler)
|
protected void |
TCPNIOConnectorHandler.connectSync(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress,
CompletionHandler<Connection> completionHandler)
|
protected static void |
TCPNIOConnectorHandler.onConnectedAsync(TCPNIOConnection connection,
CompletionHandler<Connection> completionHandler)
|
protected void |
TCPNIOConnection.setConnectCompletionHandler(CompletionHandler<Connection> connectHandler)
|
void |
UDPNIOServerConnection.unbind(CompletionHandler<Connection> completionHandler)
|
protected void |
UDPNIOConnectorHandler.waitNIOFuture(FutureImpl<Connection> future,
CompletionHandler<Connection> completionHandler)
|
protected void |
UDPNIOConnectorHandler.waitNIOFuture(FutureImpl<Connection> future,
CompletionHandler<Connection> completionHandler)
|
protected void |
TCPNIOConnectorHandler.waitNIOFuture(FutureImpl<Connection> future,
CompletionHandler<Connection> completionHandler)
|
protected void |
TCPNIOConnectorHandler.waitNIOFuture(FutureImpl<Connection> future,
CompletionHandler<Connection> completionHandler)
|
| Constructors in org.glassfish.grizzly.nio.transport with parameters of type Connection | |
|---|---|
DefaultStreamReader(Connection connection)
|
|
DefaultStreamWriter.Output(Connection connection)
|
|
DefaultStreamWriter(Connection connection)
|
|
| Constructor parameters in org.glassfish.grizzly.nio.transport with type arguments of type Connection | |
|---|---|
TCPNIOServerConnection.RegisterAcceptedChannelCompletionHandler(FutureImpl<Connection> listener)
|
|
| Uses of Connection in org.glassfish.grizzly.ssl |
|---|
| Methods in org.glassfish.grizzly.ssl with parameters of type Connection | |
|---|---|
java.util.concurrent.Future<javax.net.ssl.SSLEngine> |
SSLCodec.handshake(Connection connection)
|
void |
SSLFilter.handshake(Connection connection,
CompletionHandler<javax.net.ssl.SSLEngine> completionHandler)
|
void |
SSLFilter.handshake(Connection connection,
CompletionHandler<javax.net.ssl.SSLEngine> completionHandler,
java.lang.Object dstAddress)
|
void |
SSLFilter.handshake(Connection connection,
CompletionHandler<javax.net.ssl.SSLEngine> completionHandler,
java.lang.Object dstAddress,
SSLEngineConfigurator sslEngineConfigurator)
|
java.util.concurrent.Future<javax.net.ssl.SSLEngine> |
SSLCodec.handshake(Connection connection,
SSLEngineConfigurator configurator)
|
static javax.net.ssl.SSLEngineResult |
SSLUtils.handshakeUnwrap(Connection connection,
javax.net.ssl.SSLEngine sslEngine,
Buffer inputBuffer)
|
static Buffer |
SSLUtils.handshakeWrap(Connection connection,
javax.net.ssl.SSLEngine sslEngine)
|
| Constructors in org.glassfish.grizzly.ssl with parameters of type Connection | |
|---|---|
SSLSupportImpl(Connection connection)
|
|
| Uses of Connection in org.glassfish.grizzly.strategies |
|---|
| Methods in org.glassfish.grizzly.strategies with parameters of type Connection | |
|---|---|
boolean |
SimpleDynamicNIOStrategy.executeIoEvent(Connection connection,
IOEvent ioEvent)
|
boolean |
AbstractIOStrategy.executeIoEvent(Connection connection,
IOEvent ioEvent)
|
boolean |
WorkerThreadIOStrategy.executeIoEvent(Connection connection,
IOEvent ioEvent,
boolean isIoEventEnabled)
|
boolean |
SimpleDynamicNIOStrategy.executeIoEvent(Connection connection,
IOEvent ioEvent,
boolean isIoEventEnabled)
|
boolean |
SameThreadIOStrategy.executeIoEvent(Connection connection,
IOEvent ioEvent,
boolean isIoEventEnabled)
|
boolean |
LeaderFollowerNIOStrategy.executeIoEvent(Connection connection,
IOEvent ioEvent,
boolean isIoEventEnabled)
|
protected static void |
AbstractIOStrategy.fireIOEvent(Connection connection,
IOEvent ioEvent,
IOEventProcessingHandler ph,
java.util.logging.Logger logger)
|
protected static java.util.concurrent.Executor |
AbstractIOStrategy.getWorkerThreadPool(Connection c)
|
| Uses of Connection in org.glassfish.grizzly.streams |
|---|
| Fields in org.glassfish.grizzly.streams declared as Connection | |
|---|---|
protected Connection |
AbstractStreamReader.connection
|
| Methods in org.glassfish.grizzly.streams that return Connection | |
|---|---|
Connection |
StreamWriter.getConnection()
Get the Connection this StreamWriter belongs to. |
Connection |
Stream.getConnection()
Get the Connection this StreamReader belongs to. |
Connection |
AbstractStreamWriter.getConnection()
Get the Connection this StreamWriter belongs to. |
Connection |
AbstractStreamReader.getConnection()
Get the Connection this StreamReader belongs to. |
| Constructors in org.glassfish.grizzly.streams with parameters of type Connection | |
|---|---|
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 | |
|---|---|
DelayedExecutor.Resolver<Connection> |
IdleTimeoutFilter.getResolver()
|
| Methods in org.glassfish.grizzly.utils with parameters of type Connection | |
|---|---|
void |
IdleTimeoutFilter.TimeoutHandler.onTimeout(Connection c)
|
void |
ActivityCheckFilter.TimeoutHandler.onTimeout(Connection c)
|
static void |
IdleTimeoutFilter.setCustomTimeout(Connection connection,
long timeout,
java.util.concurrent.TimeUnit timeunit)
Provides an override mechanism for the default timeout. |
| Constructor parameters in org.glassfish.grizzly.utils with type arguments of type Connection | |
|---|---|
ActivityCheckFilter(DelayedExecutor executor,
DelayedExecutor.Worker<Connection> worker,
long timeout,
java.util.concurrent.TimeUnit timeoutUnit)
|
|
IdleTimeoutFilter(DelayedExecutor executor,
DelayedExecutor.Worker<Connection> worker,
IdleTimeoutFilter.TimeoutResolver timeoutResolver)
|
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||