| Modifier and Type | Field and Description |
|---|---|
| protected ChannelConfigurator | |
| pack-priv int | clientSocketSoTimeout
The socket time out |
| pack-priv int | connectionTimeout
Default channel connection timeout |
| public static final int | |
| public static final int | |
| public static final boolean | |
| public static final boolean | |
| public static final boolean | |
| public static final int | |
| public static final int | |
| private static final Logger | |
| protected NIOChannelDistributor | |
| private boolean | |
| pack-priv boolean | reuseAddress
The socket reuseAddress |
| pack-priv boolean | reusePort
The socket reusePort |
| private static final Holder | |
| protected SelectionKeyHandler | |
| protected SelectorHandler | |
| protected SelectorProvider | |
| protected SelectorRunner[] | |
| private int | |
| pack-priv int | serverSocketSoTimeout
The server socket time out |
| protected FutureImpl | shutdownFuture
Future to control graceful shutdown status |
| protected Set | |
| protected ExecutorService | shutdownService
ExecutorService hosting shutdown listener threads. |
| protected final TemporarySelectorIO |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | addShutdownListener(final GracefulShutdownListener shutdownListener)
Implements org. Adds a |
| protected abstract void | closeConnection(Connection<L> connection)
Implements abstract org. Close the connection, managed by Transport |
| protected void | |
| protected ExecutorService | |
| protected abstract TemporarySelectorIO | |
| protected void | |
| public ChannelConfigurator | getChannelConfigurator()
Returns: the configurator responsible for initial |
| public int | |
| public int | |
| protected int | |
| public NIOChannelDistributor | |
| public SelectionKeyHandler | |
| public SelectorHandler | |
| public SelectorProvider | Returns: theSelectorProvider to be used by this transport.Get the |
| protected SelectorRunner[] | |
| public int | |
| public int | |
| public TemporarySelectorIO | |
| public boolean | Returns: true, if NIOTransport is configured to useorg., optimized to be used in connection multiplexing mode, or
false otherwise.Returns true, if NIOTransport is configured to use
|
| public boolean | |
| public boolean | |
| public boolean | |
| protected abstract void | |
| protected static void | notifyProbesError(final NIOTransport
the Transport event occurred on. transport, final Throwable error)Notify registered |
| protected static void | notifyProbesPause(final NIOTransport
the Transport event occurred on. transport)Notify registered |
| protected static void | notifyProbesResume(final NIOTransport
the Transport event occurred on. transport)Notify registered |
| protected static void | notifyProbesStart(final NIOTransport
the Transport event occurred on. transport)Notify registered |
| protected static void | notifyProbesStop(final NIOTransport
the Transport event occurred on. transport)Notify registered |
| public void | notifyTransportError(final Throwable error)
Implements org. Method gets invoked, when error occur during the Transport lifecycle. |
| public void | pause()
Implements org. Pause UDPNIOTransport, so I/O events coming on its |
| public void | resume()
Implements org. Resume UDPNIOTransport, which has been paused before using |
| public void | setChannelConfigurator(final ChannelConfigurator channelConfigurator)
Sets the configurator responsible for initial |
| public void | |
| public void | |
| public void | |
| public void | setOptimizedForMultiplexing(final boolean optimizedForMultiplexing)
Configures NIOTransport to be optimized for specific for the connection multiplexing usecase, when different threads will try to write data simultaneously. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setSelectorProvider(final SelectorProvider
the selectorProvider)SelectorProvider.Set the |
| public void | setSelectorRunnersCount(final int selectorRunnersCount)
Sets the number of |
| public void | |
| public GrizzlyFuture | shutdown()
Implements org. Gracefully stops the transport accepting new connections and allows existing work to complete before finalizing the shutdown. |
| public GrizzlyFuture | shutdown(final long gracePeriod, final TimeUnit timeUnit)
Implements org. Gracefully stops the transport accepting new connections and allows existing work to complete before finalizing the shutdown. |
| public void | shutdownNow()
Implements org. Forcibly stops the transport and closes all connections. |
| public void | |
| protected synchronized void | |
| protected synchronized void | |
| public abstract void | unbindAll()
Redeclares org. Unbinds all bound |
| channelConfigurator | back to summary |
|---|---|
| protected ChannelConfigurator channelConfigurator | |
| clientSocketSoTimeout | back to summary |
|---|---|
| pack-priv int clientSocketSoTimeout The socket time out | |
| connectionTimeout | back to summary |
|---|---|
| pack-priv int connectionTimeout Default channel connection timeout | |
| DEFAULT_CLIENT_SOCKET_SO_TIMEOUT | back to summary |
|---|---|
| public static final int DEFAULT_CLIENT_SOCKET_SO_TIMEOUT | |
| DEFAULT_CONNECTION_TIMEOUT | back to summary |
|---|---|
| public static final int DEFAULT_CONNECTION_TIMEOUT Hides org. | |
| DEFAULT_OPTIMIZED_FOR_MULTIPLEXING | back to summary |
|---|---|
| public static final boolean DEFAULT_OPTIMIZED_FOR_MULTIPLEXING | |
| DEFAULT_REUSE_ADDRESS | back to summary |
|---|---|
| public static final boolean DEFAULT_REUSE_ADDRESS | |
| DEFAULT_REUSE_PORT | back to summary |
|---|---|
| public static final boolean DEFAULT_REUSE_PORT | |
| DEFAULT_SELECTOR_RUNNER_COUNT | back to summary |
|---|---|
| public static final int DEFAULT_SELECTOR_RUNNER_COUNT | |
| DEFAULT_SERVER_SOCKET_SO_TIMEOUT | back to summary |
|---|---|
| public static final int DEFAULT_SERVER_SOCKET_SO_TIMEOUT | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| nioChannelDistributor | back to summary |
|---|---|
| protected NIOChannelDistributor nioChannelDistributor | |
| optimizedForMultiplexing | back to summary |
|---|---|
| private boolean optimizedForMultiplexing | |
| reuseAddress | back to summary |
|---|---|
| pack-priv boolean reuseAddress The socket reuseAddress | |
| reusePort | back to summary |
|---|---|
| pack-priv boolean reusePort The socket reusePort | |
| REUSEPORT_AVAILABLE_HOLDER | back to summary |
|---|---|
| private static final Holder<Boolean> REUSEPORT_AVAILABLE_HOLDER | |
| selectionKeyHandler | back to summary |
|---|---|
| protected SelectionKeyHandler selectionKeyHandler | |
| selectorHandler | back to summary |
|---|---|
| protected SelectorHandler selectorHandler | |
| selectorProvider | back to summary |
|---|---|
| protected SelectorProvider selectorProvider | |
| selectorRunners | back to summary |
|---|---|
| protected SelectorRunner[] selectorRunners | |
| selectorRunnersCount | back to summary |
|---|---|
| private int selectorRunnersCount | |
| serverSocketSoTimeout | back to summary |
|---|---|
| pack-priv int serverSocketSoTimeout The server socket time out | |
| shutdownFuture | back to summary |
|---|---|
| protected FutureImpl<Transport> shutdownFuture Future to control graceful shutdown status | |
| shutdownListeners | back to summary |
|---|---|
| protected Set<GracefulShutdownListener> shutdownListeners | |
| shutdownService | back to summary |
|---|---|
| protected ExecutorService shutdownService ExecutorService hosting shutdown listener threads. | |
| temporarySelectorIO | back to summary |
|---|---|
| protected final TemporarySelectorIO temporarySelectorIO | |
| NIOTransport | back to summary |
|---|---|
| public NIOTransport(final String name) | |
| addShutdownListener | back to summary |
|---|---|
| public boolean addShutdownListener(final GracefulShutdownListener shutdownListener) Implements org. Doc from org. Adds a
| |
| closeConnection | back to summary |
|---|---|
| protected abstract void closeConnection(Connection<L> connection) throws IOException Implements abstract org. Doc from org. Close the connection, managed by Transport
| |
| configureNIOConnection | back to summary |
|---|---|
| protected void configureNIOConnection(NIOConnection connection) | |
| createShutdownExecutorService | back to summary |
|---|---|
| protected ExecutorService createShutdownExecutorService() | |
| createTemporarySelectorIO | back to summary |
|---|---|
| protected abstract TemporarySelectorIO createTemporarySelectorIO() | |
| finalizeShutdown | back to summary |
|---|---|
| protected void finalizeShutdown() | |
| getChannelConfigurator | back to summary |
|---|---|
public ChannelConfigurator getChannelConfigurator()
| |
| getClientSocketSoTimeout | back to summary |
|---|---|
| public int getClientSocketSoTimeout() | |
| getConnectionTimeout | back to summary |
|---|---|
| public int getConnectionTimeout() | |
| getDefaultSelectorRunnersCount | back to summary |
|---|---|
| protected int getDefaultSelectorRunnersCount() | |
| getNIOChannelDistributor | back to summary |
|---|---|
| public NIOChannelDistributor getNIOChannelDistributor() | |
| getSelectionKeyHandler | back to summary |
|---|---|
| public SelectionKeyHandler getSelectionKeyHandler() | |
| getSelectorHandler | back to summary |
|---|---|
| public SelectorHandler getSelectorHandler() | |
| getSelectorProvider | back to summary |
|---|---|
| public SelectorProvider getSelectorProvider() Get the
| |
| getSelectorRunners | back to summary |
|---|---|
| protected SelectorRunner[] getSelectorRunners() | |
| getSelectorRunnersCount | back to summary |
|---|---|
public int getSelectorRunnersCount()
| |
| getServerSocketSoTimeout | back to summary |
|---|---|
| public int getServerSocketSoTimeout() | |
| getTemporarySelectorIO | back to summary |
|---|---|
| public TemporarySelectorIO getTemporarySelectorIO() Implements org.
| |
| isOptimizedForMultiplexing | back to summary |
|---|---|
| public boolean isOptimizedForMultiplexing() Returns true, if NIOTransport is configured to use
| |
| isReuseAddress | back to summary |
|---|---|
| public boolean isReuseAddress() | |
| isReusePort | back to summary |
|---|---|
| public boolean isReusePort() | |
| isReusePortAvailable | back to summary |
|---|---|
| public boolean isReusePortAvailable() Tells whether SO_REUSEPORT is supported. | |
| listen | back to summary |
|---|---|
| protected abstract void listen() | |
| notifyProbesError | back to summary |
|---|---|
| protected static void notifyProbesError(final NIOTransport transport, final Throwable error) Notify registered
| |
| notifyProbesPause | back to summary |
|---|---|
| protected static void notifyProbesPause(final NIOTransport transport) Notify registered
| |
| notifyProbesResume | back to summary |
|---|---|
| protected static void notifyProbesResume(final NIOTransport transport) Notify registered
| |
| notifyProbesStart | back to summary |
|---|---|
| protected static void notifyProbesStart(final NIOTransport transport) Notify registered
| |
| notifyProbesStop | back to summary |
|---|---|
| protected static void notifyProbesStop(final NIOTransport transport) Notify registered
| |
| notifyTransportError | back to summary |
|---|---|
| public void notifyTransportError(final Throwable error) Implements org. Doc from org. Method gets invoked, when error occur during the Transport lifecycle.
| |
| pause | back to summary |
|---|---|
| public void pause() Implements org. Pause UDPNIOTransport, so I/O events coming on its
| |
| resume | back to summary |
|---|---|
| public void resume() Implements org. Resume UDPNIOTransport, which has been paused before using
| |
| setChannelConfigurator | back to summary |
|---|---|
| public void setChannelConfigurator(final ChannelConfigurator channelConfigurator) Sets the configurator responsible for initial
| |
| setClientSocketSoTimeout | back to summary |
|---|---|
public void setClientSocketSoTimeout(final int socketTimeout)
| |
| setConnectionTimeout | back to summary |
|---|---|
public void setConnectionTimeout(final int connectionTimeout)
| |
| setNIOChannelDistributor | back to summary |
|---|---|
| public void setNIOChannelDistributor(final NIOChannelDistributor nioChannelDistributor) | |
| setOptimizedForMultiplexing | back to summary |
|---|---|
| public void setOptimizedForMultiplexing(final boolean optimizedForMultiplexing) Configures NIOTransport to be optimized for specific for the connection multiplexing usecase, when different threads will try to write data simultaneously. | |
| setReuseAddress | back to summary |
|---|---|
| public void setReuseAddress(final boolean reuseAddress) | |
| setReusePort | back to summary |
|---|---|
| public void setReusePort(final boolean reusePort) | |
| setSelectionKeyHandler | back to summary |
|---|---|
| public void setSelectionKeyHandler(final SelectionKeyHandler selectionKeyHandler) | |
| setSelectorHandler | back to summary |
|---|---|
| public void setSelectorHandler(final SelectorHandler selectorHandler) | |
| setSelectorProvider | back to summary |
|---|---|
| public void setSelectorProvider(final SelectorProvider selectorProvider) Set the
| |
| setSelectorRunnersCount | back to summary |
|---|---|
| public void setSelectorRunnersCount(final int selectorRunnersCount) Sets the number of | |
| setServerSocketSoTimeout | back to summary |
|---|---|
public void setServerSocketSoTimeout(final int serverSocketSoTimeout)
| |
| shutdown | back to summary |
|---|---|
| public GrizzlyFuture Implements org. Doc from org. Gracefully stops the transport accepting new connections and allows existing work to complete before finalizing the
shutdown. This method will wait indefinitely for all interested parties to signal it is safe to terminate the
transport. Invoke
| |
| shutdown | back to summary |
|---|---|
| public GrizzlyFuture Implements org. Doc from org. Gracefully stops the transport accepting new connections and allows existing work to complete before finalizing the shutdown. This method will wait for the specified time for all interested parties to signal it is safe to terminate the transport. If the timeout is exceeded, the transport will be terminated forcefully.
| |
| shutdownNow | back to summary |
|---|---|
| public void shutdownNow() throws IOException Implements org. Doc from org. Forcibly stops the transport and closes all connections.
| |
| start | back to summary |
|---|---|
| public void start() throws IOException Implements org. Start TCPNIOTransport.
The transport will be started only if its current state is
| |
| startSelectorRunners | back to summary |
|---|---|
| protected synchronized void startSelectorRunners() throws IOException | |
| stopSelectorRunners | back to summary |
|---|---|
| protected synchronized void stopSelectorRunners() | |
| unbindAll | back to summary |
|---|---|
| public abstract void unbindAll() Redeclares org. Doc from org. Unbinds all bound
| |