Connection activity and closing Connection ones it becomes
idle for certain amount of time. Unlike IdleTimeoutFilter, this Filter assumes Connection is idle,
even if some event is being executed on it, so it really requires some action to be executed on Connection to
reset the timeout.
IdleTimeoutFilter
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class | |
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| private static final Attribute | |
| private static final Logger | |
| private final DelayedExecutor. | |
| private final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ActivityCheckFilter(final DelayedExecutor executor, final long timeout, final TimeUnit timeoutUnit, final ActivityCheckFilter.
|
| protected | ActivityCheckFilter(final DelayedExecutor executor, final DelayedExecutor.
|
| ACTIVE_ATTRIBUTE_NAME | back to summary |
|---|---|
| public static final String ACTIVE_ATTRIBUTE_NAME | |
| IDLE_ATTR | back to summary |
|---|---|
| private static final Attribute<ActivityCheckFilter. | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| queue | back to summary |
|---|---|
| private final DelayedExecutor. | |
| timeoutMillis | back to summary |
|---|---|
| private final long timeoutMillis | |
| ActivityCheckFilter | back to summary |
|---|---|
| public ActivityCheckFilter(final DelayedExecutor executor, final long timeout, final TimeUnit timeoutUnit) | |
| ActivityCheckFilter | back to summary |
|---|---|
| public ActivityCheckFilter(final DelayedExecutor executor, final long timeout, final TimeUnit timeoutUnit, final ActivityCheckFilter. | |
| ActivityCheckFilter | back to summary |
|---|---|
| protected ActivityCheckFilter(final DelayedExecutor executor, final DelayedExecutor. | |
| createDefaultIdleDelayedExecutor | back to summary |
|---|---|
public static DelayedExecutor createDefaultIdleDelayedExecutor()
| |
| createDefaultIdleDelayedExecutor | back to summary |
|---|---|
public static DelayedExecutor createDefaultIdleDelayedExecutor(final long checkInterval, final TimeUnit checkIntervalUnit)
| |
| getTimeout | back to summary |
|---|---|
public long getTimeout(TimeUnit timeunit)
| |
| handleAccept | back to summary |
|---|---|
| public NextAction handleAccept(final FilterChainContext ctx) throws IOException Overrides org. Implements org. Doc from org. Execute a unit of processing work to be performed, when server channel has accepted the client connection. This
| |
| handleClose | back to summary |
|---|---|
| public NextAction handleClose(final FilterChainContext ctx) throws IOException Overrides org. Implements org. Doc from org. Execute a unit of processing work to be performed, when connection has been closed. This
| |
| handleConnect | back to summary |
|---|---|
| public NextAction handleConnect(final FilterChainContext ctx) throws IOException Overrides org. Implements org. Doc from org. Execute a unit of processing work to be performed, when channel gets connected. This
| |
| handleRead | back to summary |
|---|---|
| public NextAction handleRead(final FilterChainContext ctx) throws IOException Overrides org. Implements org. Doc from org. Execute a unit of processing work to be performed, when channel will become available for reading. This
| |
| handleWrite | back to summary |
|---|---|
| public NextAction handleWrite(final FilterChainContext ctx) throws IOException Overrides org. Implements org. Doc from org. Execute a unit of processing work to be performed, when some data should be written on channel. This
| |
| Modifier and Type | Field and Description |
|---|---|
| private volatile long |
| Access | Constructor and Description |
|---|---|
| private |
| timeoutMillis | back to summary |
|---|---|
| private volatile long timeoutMillis | |
| ActiveRecord | back to summary |
|---|---|
| private ActiveRecord() | |
| Modifier and Type | Field and Description |
|---|---|
| private final ActivityCheckFilter. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | doWork(final Connection<L> connection)
Implements org. The method is executed by DelayExecutor once element's timeout expires. |
| handler | back to summary |
|---|---|
| private final ActivityCheckFilter. | |
| DefaultWorker | back to summary |
|---|---|
| pack-priv DefaultWorker(final ActivityCheckFilter. | |
| doWork | back to summary |
|---|---|
| public boolean doWork(final Connection<L> connection) Implements org. Doc from org. The method is executed by DelayExecutor once element's timeout expires.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public long | getTimeoutMillis(final Connection<L> connection)
Implements org.
|
| public boolean | removeTimeout(final Connection<L> connection)
Implements org.
|
| public void | setTimeoutMillis(final Connection<L> connection, final long timeoutMillis)
Implements org.
|
| Resolver | back to summary |
|---|---|
| private Resolver() | |
| getTimeoutMillis | back to summary |
|---|---|
| public long getTimeoutMillis(final Connection<L> connection) Implements org.
| |
| removeTimeout | back to summary |
|---|---|
| public boolean removeTimeout(final Connection<L> connection) Implements org.
| |
| setTimeoutMillis | back to summary |
|---|---|
| public void setTimeoutMillis(final Connection<L> connection, final long timeoutMillis) Implements org.
| |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| onTimeout | back to summary |
|---|---|
| public void onTimeout(final Connection<L> c) | |