| Modifier and Type | Class and Description |
|---|---|
| public static interface | Connection.
Deprecated
use This interface will be removed in 3.0.
org.
|
| public static enum | Connection.
Deprecated
use This enum will be removed in 3.0.
org.
|
| Modifier and Type | Method and Description |
|---|---|
| public void | addCloseListener(CloseListener<T extends Closeable, C extends ICloseType> closeListener)
Redeclares org. Add the |
| public void | addCloseListener(Connection.
Deprecated
use
addCloseListener(org.
Add the |
| public void | assertOpen()
Redeclares org. Checks if this Connection is open and ready to be used. |
| public GrizzlyFuture | Returns: Future, which could be checked in case, if close operation will be run asynchronouslyRedeclares org. Gracefully close the |
| public void | close(CompletionHandler<Closeable>
CompletionHandler to be called, when the connection is closed.Redeclares org.
Deprecated
use
close() with the following
GrizzlyFuture#addCompletionHandler(org..
Gracefully close the |
| public void | closeSilently()
Redeclares org. Gracefully close the |
| public void | closeWithReason(IOException reason)
Redeclares org. Gracefully closes the Connection and provides the reason description. |
| public void | configureBlocking(boolean
the isBlocking)Connection mode. true, if Connection should operate in blocking mode,
or false otherwise.Sets the |
| public void | |
| public void | |
| public void | |
| public void | executeInEventThread(IOEvent
event to get the thread pool from event, Runnable Runnable to run in the thread runnable)Executes the |
| public CloseReason | Returns: CloseReason if this Connection has been closed, or null otherwiseReturns |
| public long | Returns: id of this instance, never null.Returns id of this instance, unique in the context of the JVM and the implementation class. |
| public L | |
| public int | Returns: the max size (in bytes) of asynchronous write queue associated with connection.Get the max size (in bytes) of asynchronous write queue associated with connection. |
| public MemoryManager | |
| public MonitoringConfig | Returns: the Connection monitoring configurationMonitoringConfig.Redeclares org. Return the object associated |
| public L | |
| public Processor | |
| public ProcessorSelector | Returns: the defaultProcessorSelector, which will be used to get Processor to process
Connection I/O events, in case if this Connection's Processor is null.Gets the default |
| public int | getReadBufferSize()
Get the default size of |
| public long | Returns: the read timeout valuethe timeUnit)TimeUnit to convert the returned result to.Returns the current value for the blocking read timeout converted to the provided |
| public Transport | |
| public int | getWriteBufferSize()
Get the default size of |
| public long | Returns: the write timeout valuethe timeUnit)TimeUnit to convert the returned result to.Returns the current value for the blocking write timeout converted to the provided |
| public boolean | |
| public boolean | Returns: true, if connection is open and ready, or false otherwise.Redeclares org. Is |
| public boolean | |
| public void | notifyConnectionError(Throwable error)
Method gets invoked, when error occur during the Connection lifecycle. |
| public Processor | obtainProcessor(IOEvent
event to obtain the processor for ioEvent)Gets the |
| public < state of the E> EProcessor | |
| public boolean | removeCloseListener(CloseListener<T extends Closeable, C extends ICloseType> closeListener)
Redeclares org. Remove the |
| public boolean | Returns: true if listener successfully removed
Deprecated
use
removeCloseListener(org.
Remove the |
| public void | setMaxAsyncWriteQueueSize(int
the max size (in bytes) of asynchronous write queue associated with connection. maxAsyncWriteQueueSize)Set the max size (in bytes) of asynchronous write queue associated with connection. |
| public void | setProcessor(Processor<E extends Context>
the default preferableProcessor)Processor, which will process Connection I/O events.Sets the default |
| public void | setProcessorSelector(ProcessorSelector
the default preferableProcessorSelector)ProcessorSelector, which will be used to get Processor
to process Connection I/O events, in case if this Connection's Processor is null.Sets the default |
| public void | setReadBufferSize(int
the default size of readBufferSize)Buffers, which will be allocated for reading data from
Connection.Set the default size of |
| public void | setReadTimeout(long
the new timeout value timeout, TimeUnit the timeUnit)TimeUnit specification of the provided value.Specifies the timeout for the blocking reads. |
| public void | setWriteBufferSize(int
the default size of writeBufferSize)Buffers, which will be allocated for writing data to
Connection.Set the default size of |
| public void | setWriteTimeout(long
the new timeout value timeout, TimeUnit the timeUnit)TimeUnit specification of the provided value.Specifies the timeout for the blocking writes. |
| public void | |
| public GrizzlyFuture | Returns: Future, which could be checked in case, if close operation will be run asynchronouslyRedeclares org. Close the |
| public void | terminateSilently()
Redeclares org. Close the |
| public void | terminateWithReason(IOException reason)
Redeclares org. Closes the Connection and provides the reason description. |
| addCloseListener | back to summary |
|---|---|
| public void addCloseListener(CloseListener<T extends Closeable, C extends ICloseType> closeListener) Redeclares org. Add the
| |
| addCloseListener | back to summary |
|---|---|
| public void addCloseListener(Connection. Deprecated Add the
| |
| assertOpen | back to summary |
|---|---|
| public void assertOpen() throws IOException Redeclares org. Checks if this Connection is open and ready to be used. If this Connection is closed - this method
throws
| |
| close | back to summary |
|---|---|
| public GrizzlyFuture Redeclares org. Gracefully close the
| |
| close | back to summary |
|---|---|
| public void close(CompletionHandler<Closeable> completionHandler) Redeclares org. Deprecated use Gracefully close the
| |
| closeSilently | back to summary |
|---|---|
| public void closeSilently() Redeclares org. Gracefully close the
| |
| closeWithReason | back to summary |
|---|---|
| public void closeWithReason(IOException reason) Redeclares org. Gracefully closes the Connection and provides the reason description.
This method is similar to
| |
| configureBlocking | back to summary |
|---|---|
| public void configureBlocking(boolean isBlocking) Sets the
| |
| configureStandalone | back to summary |
|---|---|
| public void configureStandalone(boolean isStandalone)
Deprecated
| |
| disableIOEvent | back to summary |
|---|---|
| public void disableIOEvent(final IOEvent ioEvent) throws IOException | |
| enableIOEvent | back to summary |
|---|---|
| public void enableIOEvent(final IOEvent ioEvent) throws IOException | |
| executeInEventThread | back to summary |
|---|---|
| public void executeInEventThread(IOEvent event, Runnable runnable) Executes the | |
| getCloseReason | back to summary |
|---|---|
| public CloseReason getCloseReason() Returns
| |
| getId | back to summary |
|---|---|
| public long getId() Returns id of this instance, unique in the context of the JVM and the implementation class.
| |
| getLocalAddress | back to summary |
|---|---|
| public L getLocalAddress() Get the connection local address
| |
| getMaxAsyncWriteQueueSize | back to summary |
|---|---|
| public int getMaxAsyncWriteQueueSize() Get the max size (in bytes) of asynchronous write queue associated with connection.
| |
| getMemoryManager | back to summary |
|---|---|
public MemoryManager
| |
| getMonitoringConfig | back to summary |
|---|---|
| public MonitoringConfig Redeclares org. Doc from org. Return the object associated
| |
| getPeerAddress | back to summary |
|---|---|
| public L getPeerAddress() Get the connection peer address
| |
| getProcessor | back to summary |
|---|---|
| public Processor Gets the default
| |
| getProcessorSelector | back to summary |
|---|---|
| public ProcessorSelector getProcessorSelector() Gets the default
| |
| getReadBufferSize | back to summary |
|---|---|
| public int getReadBufferSize() Get the default size of
| |
| getReadTimeout | back to summary |
|---|---|
| public long getReadTimeout(TimeUnit timeUnit) Returns the current value for the blocking read timeout converted to the provided | |
| getTransport | back to summary |
|---|---|
| public Transport getTransport() Get the
| |
| getWriteBufferSize | back to summary |
|---|---|
| public int getWriteBufferSize() Get the default size of
| |
| getWriteTimeout | back to summary |
|---|---|
| public long getWriteTimeout(TimeUnit timeUnit) Returns the current value for the blocking write timeout converted to the provided | |
| isBlocking | back to summary |
|---|---|
public boolean isBlocking()
| |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Redeclares org. Is
| |
| isStandalone | back to summary |
|---|---|
| public boolean isStandalone()
Deprecated
| |
| notifyConnectionError | back to summary |
|---|---|
| public void notifyConnectionError(Throwable error) Method gets invoked, when error occur during the Connection lifecycle. | |
| obtainProcessor | back to summary |
|---|---|
| public Processor Gets the
| |
| obtainProcessorState | back to summary |
|---|---|
| public <E> E obtainProcessorState(Processor<E extends Context> processor, Supplier<E> factory) Returns the | |
| removeCloseListener | back to summary |
|---|---|
| public boolean removeCloseListener(CloseListener<T extends Closeable, C extends ICloseType> closeListener) Redeclares org. Remove the
| |
| removeCloseListener | back to summary |
|---|---|
| public boolean removeCloseListener(Connection. Deprecated use Remove the
| |
| setMaxAsyncWriteQueueSize | back to summary |
|---|---|
| public void setMaxAsyncWriteQueueSize(int maxAsyncWriteQueueSize) Set the max size (in bytes) of asynchronous write queue associated with connection.
| |
| setProcessor | back to summary |
|---|---|
| public void setProcessor(Processor<E extends Context> preferableProcessor) Sets the default
| |
| setProcessorSelector | back to summary |
|---|---|
| public void setProcessorSelector(ProcessorSelector preferableProcessorSelector) Sets the default
| |
| setReadBufferSize | back to summary |
|---|---|
| public void setReadBufferSize(int readBufferSize) Set the default size of
| |
| setReadTimeout | back to summary |
|---|---|
| public void setReadTimeout(long timeout, TimeUnit timeUnit) Specifies the timeout for the blocking reads. This may be overridden on a per-connection basis. A value of zero or less effectively disables the timeout.
| |
| setWriteBufferSize | back to summary |
|---|---|
| public void setWriteBufferSize(int writeBufferSize) Set the default size of
| |
| setWriteTimeout | back to summary |
|---|---|
| public void setWriteTimeout(long timeout, TimeUnit timeUnit) Specifies the timeout for the blocking writes. This may be overridden on a per-connection basis. A value of zero or less effectively disables the timeout.
| |
| simulateIOEvent | back to summary |
|---|---|
| public void simulateIOEvent(final IOEvent ioEvent) throws IOException | |
| terminate | back to summary |
|---|---|
| public GrizzlyFuture Redeclares org. Close the
| |
| terminateSilently | back to summary |
|---|---|
| public void terminateSilently() Redeclares org. Close the
| |
| terminateWithReason | back to summary |
|---|---|
| public void terminateWithReason(IOException reason) Redeclares org. Closes the Connection and provides the reason description.
This method is similar to
| |
Deprecated
GenericCloseListener
| Modifier and Type | Method and Description |
|---|---|
| public void | onClosed(Connection<L> connection, Connection.
Redeclares org.
References Deprecated
Connection.CloseType is deprecated or references (maybe indirectly) at least one deprecated element.
|
| onClosed | back to summary |
|---|---|
| public void onClosed(Connection<L> connection, Connection. Redeclares org. References Deprecated
See corresponding docs for further information.
| |
Deprecated
| Modifier and Type | Field and Description |
|---|---|
| public static final Connection. | LOCALLY
References Deprecated
Connection.CloseType is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public static final Connection. | REMOTELY
References Deprecated
Connection.CloseType is deprecated or references (maybe indirectly) at least one deprecated element.
|
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Connection. | valueOf(String name)
References Deprecated
Connection.CloseType is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public static Connection. | values()
References Deprecated
Connection.CloseType is deprecated or references (maybe indirectly) at least one deprecated element.
|
| LOCALLY | back to summary |
|---|---|
| public static final Connection. References Deprecated
See corresponding docs for further information. | |
| REMOTELY | back to summary |
|---|---|
| public static final Connection. References Deprecated
See corresponding docs for further information. | |
| CloseType | back to summary |
|---|---|
| private CloseType() | |
| valueOf | back to summary |
|---|---|
| public static Connection. References Deprecated
See corresponding docs for further information. | |
| values | back to summary |
|---|---|
| public static Connection. References Deprecated
See corresponding docs for further information. | |