public class TxOpRequest extends TXPacket implements TxOp
TXPacket.PacketTypePACKET_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, toJSONObjectImplcouldBeJSON, couldBeJSON, couldBeJSON, couldBeJSONArray, couldBeJSONObject, getPacketType, putPacketType, putPacketType, toJSONObject, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisIdempotentgetRequestType, getServiceName, getSummary, toBytes, toStringgetSummarysetNeedsCoordinationgetClientAddresspublic 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.JSONExceptionRequestParseExceptionpublic java.lang.String getTxID()
public boolean handleResponse(Request response)
handleResponse in interface TxOppublic boolean isBlocking()
isBlocking in interface TxOp