Package org.jgroups.protocols
Class COUNTER.UpdateRequest
java.lang.Object
org.jgroups.protocols.COUNTER.UpdateRequest
- All Implemented Interfaces:
BiFunction<String,,COUNTER.VersionedValue, COUNTER.VersionedValue> COUNTER.Request,Streamable
- Enclosing class:
COUNTER
protected static class COUNTER.UpdateRequest
extends Object
implements COUNTER.Request, BiFunction<String,COUNTER.VersionedValue,COUNTER.VersionedValue>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedUpdateRequest(String name, long value, long version) -
Method Summary
Modifier and TypeMethodDescriptionapply(String name, COUNTER.VersionedValue versionedValue) voidvoidRead 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThen
-
Field Details
-
name
-
value
protected long value -
version
protected long version
-
-
Constructor Details
-
UpdateRequest
protected UpdateRequest() -
UpdateRequest
-
-
Method Details
-
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- Throws:
IOException
-
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- Throws:
IOException
-
toString
-
getCounterName
- Specified by:
getCounterNamein interfaceCOUNTER.Request
-
getRequestType
- Specified by:
getRequestTypein interfaceCOUNTER.Request
-
execute
- Specified by:
executein interfaceCOUNTER.Request
-
apply
- Specified by:
applyin interfaceBiFunction<String,COUNTER.VersionedValue, COUNTER.VersionedValue>
-