public class MessageChannelKeepAliveFactory extends Object implements KeepAliveMessageFactory
| Constructor and Description |
|---|
MessageChannelKeepAliveFactory() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getRequest(IoSession session)
Returns a (new) keep-alive request message.
|
Object |
getResponse(IoSession session,
Object message)
Returns a (new) response message for the specified keep-alive request.
|
boolean |
isRequest(IoSession session,
Object message)
Returns true if and only if the specified message is a
keep-alive request message.
|
boolean |
isResponse(IoSession session,
Object message)
Returns true if and only if the specified message is a
keep-alive response message;
|
public boolean isResponse(IoSession session, Object message)
KeepAliveMessageFactoryisResponse in interface KeepAliveMessageFactorypublic boolean isRequest(IoSession session, Object message)
KeepAliveMessageFactoryisRequest in interface KeepAliveMessageFactorypublic Object getResponse(IoSession session, Object message)
KeepAliveMessageFactorygetResponse in interface KeepAliveMessageFactorypublic Object getRequest(IoSession session)
KeepAliveMessageFactorygetRequest in interface KeepAliveMessageFactory