@ApplicationScoped public class TieredCacheWebSocketProtocol extends AbstractWebSocketProtocol
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HEADER |
static int |
PROTOCOL_ID |
Constructor and Description |
---|
TieredCacheWebSocketProtocol() |
Modifier and Type | Method and Description |
---|---|
ProtocolConnection |
createConnection(SocketLink link)
Creates a new protocol connection.
|
protected WebSocketEndpoint |
createEndpoint() |
protected java.lang.String |
getHeaderString() |
java.lang.String |
getProtocolName()
Returns the protocol name.
|
void |
init() |
readHeader, writeHeader
public static final int PROTOCOL_ID
public static final java.lang.String HEADER
@PostConstruct public void init()
public ProtocolConnection createConnection(SocketLink link)
Protocol
createConnection
in interface Protocol
createConnection
in class AbstractWebSocketProtocol
public java.lang.String getProtocolName()
Protocol
getProtocolName
in interface Protocol
getProtocolName
in class AbstractWebSocketProtocol
protected java.lang.String getHeaderString()
getHeaderString
in class AbstractWebSocketProtocol
protected WebSocketEndpoint createEndpoint()
createEndpoint
in class AbstractWebSocketProtocol