public abstract class Receiver
extends java.lang.Object
Constructor and Description |
---|
Receiver(ServerConn conn,
EventQueue queue,
DataMap map,
byte command) |
Modifier and Type | Method and Description |
---|---|
protected byte |
getCommandType()
Get the type of the command
|
protected DataMap |
getDataMap()
Get the DataMap
|
protected EventQueue |
getEventQueue()
Get the EventQueue
|
protected abstract void |
handleData(ServerConn conn)
Abstract method for handling the data
|
void |
run()
The execution method
|
public Receiver(ServerConn conn, EventQueue queue, DataMap map, byte command)
public void run() throws java.lang.Exception
java.lang.Exception
protected byte getCommandType()
protected EventQueue getEventQueue()
protected DataMap getDataMap()
protected abstract void handleData(ServerConn conn) throws java.lang.Exception
conn
- the Connection objectjava.lang.Exception