public interface Protocol
Modifier and Type | Method and Description |
---|---|
void |
applyProtocol(PlayerSession playerSession)
The main method of this interface.
|
void |
applyProtocol(PlayerSession playerSession,
boolean clearExistingProtocolHandlers)
This method delegates to the
applyProtocol(PlayerSession) method
after clearing the pipeline based on the input flag. |
String |
getProtocolName()
Return the string name of this protocol.
|
String getProtocolName()
void applyProtocol(PlayerSession playerSession)
LoginHandler
or whichever previous
handler was handling the message has cleared up the
ChannelPipeline
object.playerSession
- The user session for which the protocol handlers need to be
set.void applyProtocol(PlayerSession playerSession, boolean clearExistingProtocolHandlers)
applyProtocol(PlayerSession)
method
after clearing the pipeline based on the input flag.playerSession
- clearExistingProtocolHandlers
- Clears the pipeline of existing protocol handlers if set to
true.Copyright © 2013. All Rights Reserved.