public abstract class AbstractNettyProtocol extends Object implements Protocol
| Modifier and Type | Field and Description |
|---|---|
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. |
io.netty.handler.codec.LengthFieldBasedFrameDecoder |
createLengthBasedFrameDecoder() |
String |
getProtocolName()
Return the string name of this protocol.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyProtocolfinal String protocolName
public static final String IDLE_STATE_CHECK_HANDLER
public AbstractNettyProtocol(String protocolName)
public io.netty.handler.codec.LengthFieldBasedFrameDecoder createLengthBasedFrameDecoder()
public String getProtocolName()
ProtocolgetProtocolName in interface Protocolpublic void applyProtocol(PlayerSession playerSession, boolean clearExistingProtocolHandlers)
ProtocolProtocol.applyProtocol(PlayerSession) method
after clearing the pipeline based on the input flag.applyProtocol in interface ProtocolclearExistingProtocolHandlers - Clears the pipeline of existing protocol handlers if set to
true.Copyright © 2013. All Rights Reserved.