public class ChannelIdleDetectionConfig
extends java.lang.Object
| Constructor and Description |
|---|
ChannelIdleDetectionConfig(int maxIdleTime,
java.lang.String heartbeatFrame)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ByteBuf |
getHeartbeatFrame()
Returns the heartbeat frame that is sent when a channel is considered idle.
|
int |
getMaxIdleTime()
Returns the maximum number of seconds a channel can be idle before a heartbeat is sent.
|
public ChannelIdleDetectionConfig(int maxIdleTime,
java.lang.String heartbeatFrame)
maxIdleTime - the maximum number of seconds a channel can be idle before a heartbeat is sentheartbeatFrame - the heartbeat frame to send when a channel is considered idlepublic int getMaxIdleTime()
public ByteBuf getHeartbeatFrame()
Copyright © 2015 Whizzo Software LLC. All rights reserved.