public class SynapseServer extends Synapse implements NetworkListener
Synapse.Builder| Constructor and Description |
|---|
SynapseServer(SessionManager<SynapseSession> sessionManager,
SynapsePacketCodec packetCodec,
SessionFactory<SynapseSession,SynapseSession> sessionFactory,
InetSocketAddress address,
int maxThreads,
SecretKey key) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
bind() |
void |
close() |
InetSocketAddress |
getAddress() |
SecretKey |
getKey() |
protected void |
initPipeline(io.netty.channel.ChannelPipeline pipeline) |
getBootstrap, initChannelchannelRegistered, exceptionCaught, handlerAddedchannelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerRemoved, isSharablepublic SynapseServer(SessionManager<SynapseSession> sessionManager, SynapsePacketCodec packetCodec, SessionFactory<SynapseSession,SynapseSession> sessionFactory, InetSocketAddress address, int maxThreads, SecretKey key)
public boolean bind()
bind in interface NetworkListenerpublic void close()
close in interface NetworkListenerpublic InetSocketAddress getAddress()
getAddress in interface NetworkListenerprotected void initPipeline(io.netty.channel.ChannelPipeline pipeline)
initPipeline in class Synapsepublic SecretKey getKey()
Copyright © 2018–2019. All rights reserved.