T - the type of the value to writepublic class ScalarisIncrementOp2<T extends Number> extends Object implements ScalarisOp
| Constructor and Description |
|---|
ScalarisIncrementOp2(String key,
T value)
Creates a write operation.
|
| Modifier and Type | Method and Description |
|---|---|
int |
doPhase(int phase,
int firstOp,
ResultList results,
RequestList requests)
Executes the given phase.
|
T |
getIncValue()
Gets the value to increment by.
|
String |
getKey()
Gets the key to write to.
|
String |
toString() |
int |
workPhases()
Gets the number of work phases needed by this operation (not including
the final result verification phase).
|
public int workPhases()
ScalarisOpworkPhases in interface ScalarisOppublic final int doPhase(int phase,
int firstOp,
ResultList results,
RequestList requests)
throws OtpErlangException,
UnknownException,
IllegalArgumentException
ScalarisOpdoPhase in interface ScalarisOpphase - the number of the current phasefirstOp - the current operation's index in the result listresults - the results from the previous operations
(may be null if there was none)requests - the requests for the next operations
(may be null if there are none, i.e. in the
verification phase)OtpErlangException - if an error occured verifying a result from previous
operationsUnknownException - if an error occured verifying a result from previous
operationsIllegalArgumentException - if the given work phase is not supportedScalarisOp.workPhases()public String toString()
toString in interface ScalarisOptoString in class Objectpublic String getKey()
public T getIncValue()