public static interface NetChannel.ConsumerSpec
| Modifier and Type | Method and Description |
|---|---|
NetChannel.ConsumerSpec |
close(java.lang.Runnable onClose)
Assign a
Runnable to be invoked when the channel is closed. |
NetChannel.ConsumerSpec |
readIdle(long idleTimeout,
java.lang.Runnable onReadIdle)
Assign a
Runnable to be invoked when reads have become idle for the given timeout. |
NetChannel.ConsumerSpec |
writeIdle(long idleTimeout,
java.lang.Runnable onWriteIdle)
Assign a
Runnable to be invoked when writes have become idle for the given timeout. |
NetChannel.ConsumerSpec close(java.lang.Runnable onClose)
Runnable to be invoked when the channel is closed.onClose - the close event handlerNetChannel.ConsumerSpec readIdle(long idleTimeout, java.lang.Runnable onReadIdle)
Runnable to be invoked when reads have become idle for the given timeout.idleTimeout - the idle timeoutonReadIdle - the idle timeout handlerNetChannel.ConsumerSpec writeIdle(long idleTimeout, java.lang.Runnable onWriteIdle)
Runnable to be invoked when writes have become idle for the given timeout.idleTimeout - the idle timeoutonWriteIdle - the idle timeout handler