|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--amber.type.server.PendingResponsePacket
This class holds information on a packet which is expected by the server. It is typically used when a response is required from the client.
ComponentHandler| Field Summary | |
protected byte |
commandId
This is the expected response packet ID in the returned packet. |
protected Mutex |
lock
This is the mutex which is blocking the server thread. |
protected PacketData |
responsePacket
This is the returned packet data. |
| Constructor Summary | |
PendingResponsePacket()
Default Constructor. |
|
PendingResponsePacket(PacketData responsePacket,
byte commandId,
Mutex lock)
Initialising Constructor. |
|
| Method Summary | |
byte |
getCommandId()
Gets the data in the following variable: This is the expected response packet ID in the returned packet. |
Mutex |
getLock()
Gets the data in the following variable: This is the mutex which is blocking the server thread. |
PacketData |
getResponsePacket()
Gets the data in the following variable: This is the returned packet data. |
void |
setCommandId(byte data)
Sets the data in the following variable: This is the expected response packet ID in the returned packet. |
void |
setLock(Mutex data)
Sets the data in the following variable: This is the mutex which is blocking the server thread. |
void |
setResponsePacket(PacketData data)
Sets the data in the following variable: This is the returned packet data. |
java.lang.String |
toString()
This function returns the String form of the data. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected PacketData responsePacket
protected byte commandId
protected Mutex lock
| Constructor Detail |
public PendingResponsePacket()
public PendingResponsePacket(PacketData responsePacket,
byte commandId,
Mutex lock)
responsePacket - This is the returned packet data. It is set when the response packet is received.commandId - This is the expected response packet ID in the returned packet.lock - This is the mutex which is blocking the server thread. This must be unlocked when the client returns the response packet.| Method Detail |
public PacketData getResponsePacket()
public byte getCommandId()
public Mutex getLock()
public void setResponsePacket(PacketData data)
data - PacketData containing the data to set the variable to.public void setCommandId(byte data)
data - byte containing the data to set the variable to.public void setLock(Mutex data)
data - Mutex containing the data to set the variable to.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||