public final class CommonErlangObjects extends Object
Modifier and Type | Field and Description |
---|---|
static OtpErlangAtom |
abortAtom |
static OtpErlangAtom |
addDelOnListAtom |
static OtpErlangAtom |
addOnNrAtom |
static OtpErlangAtom |
arrayAtom |
static OtpErlangTuple |
commitTupleAtom |
static OtpErlangAtom |
emptyListAtom |
static OtpErlangAtom |
failAtom |
static OtpErlangAtom |
falseAtom |
static OtpErlangAtom |
keyChangedAtom |
static OtpErlangAtom |
notAListAtom |
static OtpErlangAtom |
notANumberAtom |
static OtpErlangAtom |
notFoundAtom |
static OtpErlangAtom |
nullAtom |
static OtpErlangAtom |
okAtom |
static OtpErlangTuple |
okTupleAtom |
static OtpErlangAtom |
randomFromListAtom |
static OtpErlangAtom |
readAtom |
static OtpErlangAtom |
structAtom |
static OtpErlangAtom |
sublistAtom |
static OtpErlangAtom |
testAndSetAtom |
static OtpErlangAtom |
timeoutAtom |
static OtpErlangAtom |
trueAtom |
static OtpErlangAtom |
writeAtom |
Constructor and Description |
---|
CommonErlangObjects() |
Modifier and Type | Method and Description |
---|---|
static void |
checkResult_failAbort(OtpErlangObject received_raw,
boolean compressed)
Processes the received_raw term from erlang and if it is a
{fail, abort, KeyList}, issues an
AbortException . |
static void |
checkResult_failAbort(OtpErlangTuple received,
boolean compressed)
Processes the received_raw term from erlang and if it is a
{fail, abort, KeyList}, issues an
AbortException . |
static OtpErlangObject |
decode(OtpErlangObject value)
Decodes the given Erlang object from a binary to the according
OtpErlangObject the same way as rdht_tx:decode_value/1. |
static OtpErlangObject |
encode(OtpErlangObject value)
Encoded the given erlang object to a binary the same way as
rdht_tx:encode_value/1.
|
public static final OtpErlangAtom readAtom
public static final OtpErlangAtom writeAtom
public static final OtpErlangAtom addDelOnListAtom
public static final OtpErlangAtom testAndSetAtom
public static final OtpErlangAtom addOnNrAtom
public static final OtpErlangAtom okAtom
public static final OtpErlangAtom failAtom
public static final OtpErlangAtom abortAtom
public static final OtpErlangAtom timeoutAtom
public static final OtpErlangAtom notFoundAtom
public static final OtpErlangAtom keyChangedAtom
public static final OtpErlangAtom notAListAtom
public static final OtpErlangAtom notANumberAtom
public static final OtpErlangAtom emptyListAtom
public static final OtpErlangTuple okTupleAtom
public static final OtpErlangTuple commitTupleAtom
public static final OtpErlangAtom sublistAtom
public static final OtpErlangAtom randomFromListAtom
public static final OtpErlangAtom structAtom
public static final OtpErlangAtom arrayAtom
public static final OtpErlangAtom trueAtom
public static final OtpErlangAtom falseAtom
public static final OtpErlangAtom nullAtom
public static OtpErlangObject encode(OtpErlangObject value)
value
- the decoded valuepublic static OtpErlangObject decode(OtpErlangObject value) throws OtpErlangDecodeException
OtpErlangObject
the same way as rdht_tx:decode_value/1.value
- the encoded valueOtpErlangDecodeException
- if decoding failspublic static final void checkResult_failAbort(OtpErlangObject received_raw, boolean compressed) throws AbortException, UnknownException
AbortException
.
NOTE: this method should not be called manually by an application and may
change without prior notice!received_raw
- the object to processcompressed
- whether the transfer of values is compressed or notAbortException
- if the commit of the write failedUnknownException
- if any other error occurspublic static final void checkResult_failAbort(OtpErlangTuple received, boolean compressed) throws AbortException, UnknownException
AbortException
.
NOTE: this method should not be called manually by an application and may
change without prior notice!received
- the object to processcompressed
- whether the transfer of values is compressed or notAbortException
- if the commit of the write failedUnknownException
- if any other error occurs