|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Operation
Generic interface for operations which can be added to a request list.
Method Summary | |
---|---|
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 setResult(OtpErlangObject, boolean) . |
boolean |
getResultCompressed()
Determines if the result set via setResult(OtpErlangObject, boolean) is compressed or not. |
Object |
processResult()
Processes the result set by setResult(OtpErlangObject, boolean) . |
void |
setResult(OtpErlangObject resultRaw,
boolean compressed)
Sets the raw erlang result value. |
Method Detail |
---|
OtpErlangObject getErlang(boolean compressed)
compressed
- whether the value part in the term should be encoded, i.e.
compressed into an Erlang binary, or not
OtpErlangString getKey()
void setResult(OtpErlangObject resultRaw, boolean compressed)
processResult()
.
resultRaw
- the resultcompressed
- whether the value inside the result is compressed or notOtpErlangObject getResult()
setResult(OtpErlangObject, boolean)
.
boolean getResultCompressed()
setResult(OtpErlangObject, boolean)
is compressed or not.
Object processResult() throws NotFoundException, KeyChangedException, NotANumberException, NotAListException, AbortException, EmptyListException, UnknownException
setResult(OtpErlangObject, boolean)
.
Note: the created value is not cached!
NotFoundException
- if the requested key does not exist
KeyChangedException
- if the key did not match old_value
NotANumberException
- if the previously stored value was not a number
NotAListException
- if the previously stored value was no list
EmptyListException
- if the stored value is an empty list but the op requires a
non-empty list
AbortException
- if a commit failed
UnknownException
- if any other error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |