Package org.jgroups.protocols
Class COUNTER.CompareAndSetRequest
java.lang.Object
org.jgroups.protocols.COUNTER.SimpleRequest
org.jgroups.protocols.COUNTER.CompareAndSetRequest
- All Implemented Interfaces:
COUNTER.Request,Streamable
- Enclosing class:
COUNTER
-
Field Summary
FieldsFields inherited from class org.jgroups.protocols.COUNTER.SimpleRequest
name, owner -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedCompareAndSetRequest(Owner owner, String name, long expected, long update) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidRead the state of the current object (including superclasses) from instream Note that the input stream must not be closedtoString()voidwriteTo(DataOutput out) Write the entire state of the current object (including superclasses) to outstream.Methods inherited from class org.jgroups.protocols.COUNTER.SimpleRequest
getCounterName
-
Field Details
-
expected
protected long expected -
update
protected long update
-
-
Constructor Details
-
CompareAndSetRequest
protected CompareAndSetRequest() -
CompareAndSetRequest
-
-
Method Details
-
readFrom
Description copied from interface:StreamableRead the state of the current object (including superclasses) from instream Note that the input stream must not be closed- Specified by:
readFromin interfaceStreamable- Overrides:
readFromin classCOUNTER.SimpleRequest- Throws:
IOExceptionClassNotFoundException
-
writeTo
Description copied from interface:StreamableWrite the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed- Specified by:
writeToin interfaceStreamable- Overrides:
writeToin classCOUNTER.SimpleRequest- Throws:
IOException
-
toString
- Overrides:
toStringin classCOUNTER.SimpleRequest
-
getRequestType
-
execute
-