public class TxOpRequest extends TXPacket implements TxOp
TXPacket.PacketType
PACKET_TYPE, type
Constructor and Description |
---|
TxOpRequest(org.json.JSONObject json,
AppRequestParser parser)
The parser should be able to convert a serialized request to either an
app request or client reconfiguration packet as appropriate.
|
TxOpRequest(java.lang.String txid,
Request request) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getTxID() |
boolean |
handleResponse(Request response) |
boolean |
isBlocking() |
getRequestID, getRequestType, getResponse, getResponseCode, getServiceName, getTXID, getTXPacketType, isFailed, needsCoordination, setFailed, setResponseCode, toJSONObjectImpl
couldBeJSON, couldBeJSON, couldBeJSON, couldBeJSONArray, couldBeJSONObject, getPacketType, putPacketType, putPacketType, toJSONObject, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isIdempotent
getRequestType, getServiceName, getSummary, toBytes, toString
getSummary
setNeedsCoordination
getClientAddress
public TxOpRequest(java.lang.String txid, Request request)
txid
- request
- public TxOpRequest(org.json.JSONObject json, AppRequestParser parser) throws org.json.JSONException, RequestParseException
json
- parser
- org.json.JSONException
RequestParseException
public java.lang.String getTxID()
public boolean handleResponse(Request response)
handleResponse
in interface TxOp
public boolean isBlocking()
isBlocking
in interface TxOp