Package org.jgroups.protocols
Class COUNTER.ResponseData<T>
java.lang.Object
org.jgroups.protocols.COUNTER.ResponseData<T>
- All Implemented Interfaces:
BiFunction<String,COUNTER.VersionedValue, COUNTER.VersionedValue>
- Enclosing class:
COUNTER
private static class COUNTER.ResponseData<T>
extends Object
implements BiFunction<String,COUNTER.VersionedValue,COUNTER.VersionedValue>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateResponseData(String counterName, long value, long version, T returnValue) -
Method Summary
Modifier and TypeMethodDescriptionapply(String s, COUNTER.VersionedValue versionedValue) Updates the VersionedValue if the version is bigger.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThen
-
Field Details
-
counterName
-
value
private final long value -
version
private final long version -
returnValue
-
-
Constructor Details
-
ResponseData
-
-
Method Details
-
apply
Updates the VersionedValue if the version is bigger.- Specified by:
applyin interfaceBiFunction<String,COUNTER.VersionedValue, COUNTER.VersionedValue>
-