public abstract class AbstractNettyProtocol extends Object implements Protocol
Modifier and Type | Field and Description |
---|---|
static String |
IDLE_CHECK_HANDLER |
static String |
IDLE_STATE_CHECK_HANDLER
Name of the idle state check handlers which will be removed by protocol
manually if required from pipeline.
|
(package private) String |
protocolName
The name of the protocol.
|
Constructor and Description |
---|
AbstractNettyProtocol(String protocolName) |
Modifier and Type | Method and Description |
---|---|
void |
applyProtocol(PlayerSession playerSession,
boolean clearExistingProtocolHandlers)
This method delegates to the
Protocol.applyProtocol(PlayerSession) method
after clearing the pipeline based on the input flag. |
org.jboss.netty.handler.codec.frame.LengthFieldBasedFrameDecoder |
createLengthBasedFrameDecoder() |
String |
getProtocolName()
Return the string name of this protocol.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyProtocol
final String protocolName
public static final String IDLE_STATE_CHECK_HANDLER
public static final String IDLE_CHECK_HANDLER
public AbstractNettyProtocol(String protocolName)
public org.jboss.netty.handler.codec.frame.LengthFieldBasedFrameDecoder createLengthBasedFrameDecoder()
public String getProtocolName()
Protocol
getProtocolName
in interface Protocol
public void applyProtocol(PlayerSession playerSession, boolean clearExistingProtocolHandlers)
Protocol
Protocol.applyProtocol(PlayerSession)
method
after clearing the pipeline based on the input flag.applyProtocol
in interface Protocol
clearExistingProtocolHandlers
- Clears the pipeline of existing protocol handlers if set to
true.Copyright © 2013. All Rights Reserved.