public class LockRequest extends TXPacket
TXPacket.PacketType
PACKET_TYPE, type
Constructor and Description |
---|
LockRequest(org.json.JSONObject json) |
LockRequest(java.lang.String lockID,
Transaction tx) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLockID() |
java.lang.String |
getServiceName() |
org.json.JSONObject |
toJSONObjectImpl() |
getRequestID, getRequestType, getResponse, getResponseCode, getTXID, getTXPacketType, isFailed, needsCoordination, setFailed, setResponseCode
couldBeJSON, couldBeJSON, couldBeJSON, couldBeJSONArray, couldBeJSONObject, getPacketType, putPacketType, putPacketType, toJSONObject, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setNeedsCoordination
getClientAddress
getSummary, toBytes, toString
getSummary
public LockRequest(java.lang.String lockID, Transaction tx)
lockID
- tx
- public LockRequest(org.json.JSONObject json) throws org.json.JSONException
json
- org.json.JSONException
public org.json.JSONObject toJSONObjectImpl()
toJSONObjectImpl
in class TXPacket
public java.lang.String getLockID()
public java.lang.String getServiceName()
getServiceName
in interface Request
getServiceName
in class TXPacket