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)
KeepAliveMessageFactory
isResponse
in interface KeepAliveMessageFactory
public boolean isRequest(IoSession session, Object message)
KeepAliveMessageFactory
isRequest
in interface KeepAliveMessageFactory
public Object getResponse(IoSession session, Object message)
KeepAliveMessageFactory
getResponse
in interface KeepAliveMessageFactory
public Object getRequest(IoSession session)
KeepAliveMessageFactory
getRequest
in interface KeepAliveMessageFactory