public abstract class ResultList extends Object
Modifier and Type | Method and Description |
---|---|
Operation |
get(int index)
Returns the operation at the specified position for e.g.
|
abstract void |
processAddDelOnListAt(int pos)
Processes the result at the given position which originated from
a add_del_on_list request.
|
abstract void |
processAddOnNrAt(int pos)
Processes the result at the given position which originated from
an add_on_nr request.
|
ErlangValue |
processReadAt(int pos)
Processes the result at the given position which originated from a read
request and returns the value that has been read.
|
abstract void |
processTestAndSetAt(int pos)
Processes the result at the given position which originated from
a test_and_set request.
|
abstract void |
processWriteAt(int pos)
Processes the result at the given position which originated from
a write request.
|
int |
size()
Gets the number of results in the list.
|
String |
toString() |
public int size()
public Operation get(int index)
index
- index of the operation/result to returnIndexOutOfBoundsException
- if the index is out of range (
index < 0 || index >= size())public ErlangValue processReadAt(int pos) throws NotFoundException, UnknownException
pos
- the position in the result list (starting at 0)NotFoundException
- if the requested key does not existUnknownException
- if any other error occurspublic abstract void processWriteAt(int pos) throws AbortException, UnknownException
pos
- the position in the result list (starting at 0)AbortException
- if the commit of the write failed (if there was a commit)UnknownException
- if any other error occurspublic abstract void processAddDelOnListAt(int pos) throws NotAListException, AbortException, UnknownException
pos
- the position in the result list (starting at 0)NotAListException
- if the previously stored value was no listAbortException
- if the commit of the write failed (if there was a commit)UnknownException
- if any other error occurspublic abstract void processAddOnNrAt(int pos) throws NotANumberException, AbortException, UnknownException
pos
- the position in the result list (starting at 0)NotANumberException
- if the previously stored value was not a numberAbortException
- if the commit of the write failed (if there was a commit)UnknownException
- if any other error occurspublic abstract void processTestAndSetAt(int pos) throws NotFoundException, KeyChangedException, AbortException, UnknownException
pos
- the position in the result list (starting at 0)NotFoundException
- if the requested key does not existKeyChangedException
- if the key did not match old_valueAbortException
- if the commit of the write failed (if there was a commit)UnknownException
- if any other error occurs