Transaction.RequestList, TransactionSingleOp.RequestListpublic abstract class RequestList
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
RequestList |
addAddDelOnList(com.ericsson.otp.erlang.OtpErlangString key,
com.ericsson.otp.erlang.OtpErlangList toAdd,
com.ericsson.otp.erlang.OtpErlangList toRemove) |
Deprecated.
|
<T> RequestList |
addAddDelOnList(java.lang.String key,
java.util.List<T> toAdd,
java.util.List<T> toRemove) |
Deprecated.
|
RequestList |
addAddOnNr(com.ericsson.otp.erlang.OtpErlangString key,
com.ericsson.otp.erlang.OtpErlangDouble toAdd) |
Deprecated.
|
RequestList |
addAddOnNr(com.ericsson.otp.erlang.OtpErlangString key,
com.ericsson.otp.erlang.OtpErlangLong toAdd) |
Deprecated.
|
RequestList |
addAddOnNr(java.lang.String key,
java.lang.Double toAdd) |
Deprecated.
|
<T extends java.lang.Number> |
addAddOnNr(java.lang.String key,
T toAdd) |
Deprecated.
|
RequestList |
addCommit() |
Adds a commit operation to the list of requests.
|
RequestList |
addOp(Operation op) |
Adds a generic operation to the list of requests.
|
RequestList |
addRead(com.ericsson.otp.erlang.OtpErlangString key) |
Deprecated.
|
RequestList |
addRead(java.lang.String key) |
Deprecated.
|
RequestList |
addTestAndSet(com.ericsson.otp.erlang.OtpErlangString key,
com.ericsson.otp.erlang.OtpErlangObject oldValue,
com.ericsson.otp.erlang.OtpErlangObject newValue) |
Deprecated.
|
<OldT,NewT> |
addTestAndSet(java.lang.String key,
OldT oldValue,
NewT newValue) |
Deprecated.
|
RequestList |
addWrite(com.ericsson.otp.erlang.OtpErlangString key,
com.ericsson.otp.erlang.OtpErlangObject value) |
Deprecated.
|
<T> RequestList |
addWrite(java.lang.String key,
T value) |
Deprecated.
|
CommitOp |
getCommit() |
Returns the commit operation (if present).
|
java.util.List<Operation> |
getRequests() |
Gets all operations of the request list.
|
boolean |
isCommit() |
Returns whether the transactions contains a commit or not.
|
boolean |
isEmpty() |
Checks whether the request list is empty.
|
int |
size() |
Gets the number of requests in the list.
|
java.lang.String |
toString() |
public RequestList addOp(Operation op) throws java.lang.UnsupportedOperationException
op - the operation to addRequestList objectjava.lang.UnsupportedOperationException - if the operation is unsupported, e.g. there may only be one
"commit" in a request list and no request after that@Deprecated public RequestList addRead(com.ericsson.otp.erlang.OtpErlangString key) throws java.lang.UnsupportedOperationException
key - the key to readRequestList objectjava.lang.UnsupportedOperationException - if the operation is unsupported, e.g. there may only be one
"commit" in a request list and no request after that@Deprecated public RequestList addRead(java.lang.String key) throws java.lang.UnsupportedOperationException
key - the key to readRequestList objectjava.lang.UnsupportedOperationException - if the operation is unsupported, e.g. there may only be one
"commit" in a request list and no request after that@Deprecated public RequestList addWrite(com.ericsson.otp.erlang.OtpErlangString key, com.ericsson.otp.erlang.OtpErlangObject value) throws java.lang.UnsupportedOperationException
key - the key to write the value tovalue - the value to writeRequestList objectjava.lang.UnsupportedOperationException - if the operation is unsupported, e.g. there may only be one
"commit" in a request list and no request after that@Deprecated public <T> RequestList addWrite(java.lang.String key, T value) throws java.lang.UnsupportedOperationException
T - type of the value to writekey - the key to write the value tovalue - the value to writeRequestList objectjava.lang.UnsupportedOperationException - if the operation is unsupported, e.g. there may only be one
"commit" in a request list and no request after that@Deprecated public RequestList addAddDelOnList(com.ericsson.otp.erlang.OtpErlangString key, com.ericsson.otp.erlang.OtpErlangList toAdd, com.ericsson.otp.erlang.OtpErlangList toRemove) throws java.lang.UnsupportedOperationException
key - the key to write the value totoAdd - a list of values to add to a listtoRemove - a list of values to remove from a listRequestList objectjava.lang.UnsupportedOperationException - if the operation is unsupported, e.g. there may only be one
"commit" in a request list and no request after that@Deprecated public <T> RequestList addAddDelOnList(java.lang.String key, java.util.List<T> toAdd, java.util.List<T> toRemove) throws java.lang.UnsupportedOperationException
T - type of the value to writekey - the key to write the value totoAdd - a list of values to add to a listtoRemove - a list of values to remove from a listRequestList objectjava.lang.UnsupportedOperationException - if the operation is unsupported, e.g. there may only be one
"commit" in a request list and no request after that@Deprecated public RequestList addAddOnNr(com.ericsson.otp.erlang.OtpErlangString key, com.ericsson.otp.erlang.OtpErlangLong toAdd) throws java.lang.UnsupportedOperationException
key - the key to write the value totoAdd - the number to add to the number stored at keyRequestList objectjava.lang.UnsupportedOperationException - if the operation is unsupported, e.g. there may only be one
"commit" in a request list and no request after that@Deprecated public RequestList addAddOnNr(com.ericsson.otp.erlang.OtpErlangString key, com.ericsson.otp.erlang.OtpErlangDouble toAdd) throws java.lang.UnsupportedOperationException
key - the key to write the value totoAdd - the number to add to the number stored at keyRequestList objectjava.lang.UnsupportedOperationException - if the operation is unsupported, e.g. there may only be one
"commit" in a request list and no request after that@Deprecated public <T extends java.lang.Number> RequestList addAddOnNr(java.lang.String key, T toAdd) throws java.lang.UnsupportedOperationException
T - type of the value to write; WARNING: the actual supported
types only include Integer, Long,
BigInteger and Double - see
ErlangValue.convertToErlang(Object).key - the key to write the value totoAdd - the number to add to the number stored at keyRequestList objectjava.lang.UnsupportedOperationException - if the operation is unsupported, e.g. there may only be one
"commit" in a request list and no request after that@Deprecated public RequestList addAddOnNr(java.lang.String key, java.lang.Double toAdd) throws java.lang.UnsupportedOperationException
key - the key to write the value totoAdd - the number to add to the number stored at keyRequestList objectjava.lang.UnsupportedOperationException - if the operation is unsupported, e.g. there may only be one
"commit" in a request list and no request after that@Deprecated public RequestList addTestAndSet(com.ericsson.otp.erlang.OtpErlangString key, com.ericsson.otp.erlang.OtpErlangObject oldValue, com.ericsson.otp.erlang.OtpErlangObject newValue) throws java.lang.UnsupportedOperationException
key - the key to write the value tooldValue - the old value to verifynewValue - the new value to write of oldValue is correctRequestList objectjava.lang.UnsupportedOperationException - if the operation is unsupported, e.g. there may only be one
"commit" in a request list and no request after that@Deprecated public <OldT,NewT> RequestList addTestAndSet(java.lang.String key, OldT oldValue, NewT newValue) throws java.lang.UnsupportedOperationException
OldT - the type of the stored (old) value. See ErlangValue
for a list of supported types.NewT - the type of the (new) value to store. See ErlangValue
for a list of supported types.key - the key to write the value tooldValue - the old value to verifynewValue - the new value to write of oldValue is correctRequestList objectjava.lang.UnsupportedOperationException - if the operation is unsupported, e.g. there may only be one
"commit" in a request list and no request after thatpublic RequestList addCommit() throws java.lang.UnsupportedOperationException
RequestList objectjava.lang.UnsupportedOperationException - if the operation is unsupported, e.g. there may only be one
"commit" in a request list and no request after thatpublic boolean isCommit()
public CommitOp getCommit()
public boolean isEmpty()
public int size()
public java.util.List<Operation> getRequests()
public java.lang.String toString()
toString in class java.lang.Object