public abstract class SessionHandler extends Object
Constructor and Description |
---|
SessionHandler(InetSocketAddress address,
SharedServerSocket socket) |
Modifier and Type | Method and Description |
---|---|
abstract void |
close() |
InetSocketAddress |
getAddress() |
abstract Protocol |
getProtocol() |
SharedServerSocket |
getSocket() |
abstract boolean |
isOrphan()
Returns whether this session an orphan.
|
abstract void |
onReceive(PacketWithAddress pk) |
abstract void |
send(ByteBuffer buffer) |
void |
tick() |
@ConstructorProperties(value={"address","socket"}) public SessionHandler(InetSocketAddress address, SharedServerSocket socket)
public abstract void onReceive(PacketWithAddress pk)
public abstract void send(ByteBuffer buffer)
public abstract void close()
public abstract Protocol getProtocol()
public void tick()
public abstract boolean isOrphan()
Returns whether this session an orphan.
An orphan session is a session that has not been recognized by any sessions yet.
public InetSocketAddress getAddress()
public SharedServerSocket getSocket()
Copyright © 2016. All rights reserved.