public class CommitOp extends Object implements TransactionOperation
Constructor and Description |
---|
CommitOp()
Constructor
|
Modifier and Type | Method and Description |
---|---|
OtpErlangObject |
getErlang(boolean compressed)
Gets the erlang representation of the operation.
|
OtpErlangString |
getKey()
Gets the key the operation is working on (if available)
|
OtpErlangObject |
getResult()
Gets the (raw Erlang) result set via
Operation.setResult(OtpErlangObject, boolean) . |
boolean |
getResultCompressed()
Determines if the result set via
Operation.setResult(OtpErlangObject, boolean) is compressed or not. |
static void |
processResult_commit(OtpErlangObject received_raw,
boolean compressed)
Processes the received_raw term from erlang interpreting it as a
result from a commit operation.
|
Object |
processResult()
Processes the result set by
Operation.setResult(OtpErlangObject, boolean) . |
void |
setResult(OtpErlangObject resultRaw,
boolean compressed)
Sets the raw erlang result value.
|
String |
toString() |
public OtpErlangObject getErlang(boolean compressed)
Operation
public OtpErlangString getKey()
Operation
public void setResult(OtpErlangObject resultRaw, boolean compressed)
Operation
Operation.processResult()
.public OtpErlangObject getResult()
Operation
Operation.setResult(OtpErlangObject, boolean)
.public boolean getResultCompressed()
Operation
Operation.setResult(OtpErlangObject, boolean)
is compressed or not.getResultCompressed
in interface Operation
public Object processResult() throws AbortException, UnknownException
Operation
Operation.setResult(OtpErlangObject, boolean)
.
Note: the created value is not cached!processResult
in interface Operation
AbortException
- if a commit failedUnknownException
- if any other error occurspublic static final void processResult_commit(OtpErlangObject received_raw, boolean compressed) throws AbortException, UnknownException
received_raw
- the object to processcompressed
- whether the transfer of values is compressed or notAbortException
- if the commit of the commit failedUnknownException
- if any other error occurs