Package org.jgroups.protocols
Class COUNTER.ResponseData<T>
- java.lang.Object
-
- org.jgroups.protocols.COUNTER.ResponseData<T>
-
- All Implemented Interfaces:
java.util.function.BiFunction<java.lang.String,COUNTER.VersionedValue,COUNTER.VersionedValue>
- Enclosing class:
- COUNTER
private static class COUNTER.ResponseData<T> extends java.lang.Object implements java.util.function.BiFunction<java.lang.String,COUNTER.VersionedValue,COUNTER.VersionedValue>
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringcounterNameprivate TreturnValueprivate longvalueprivate longversion
-
Constructor Summary
Constructors Modifier Constructor Description privateResponseData(java.lang.String counterName, long value, long version, T returnValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description COUNTER.VersionedValueapply(java.lang.String s, COUNTER.VersionedValue versionedValue)Updates the VersionedValue if the version is bigger.
-
-
-
Field Detail
-
counterName
private final java.lang.String counterName
-
value
private final long value
-
version
private final long version
-
returnValue
private final T returnValue
-
-
Constructor Detail
-
ResponseData
private ResponseData(java.lang.String counterName, long value, long version, T returnValue)
-
-
Method Detail
-
apply
public COUNTER.VersionedValue apply(java.lang.String s, COUNTER.VersionedValue versionedValue)
Updates the VersionedValue if the version is bigger.- Specified by:
applyin interfacejava.util.function.BiFunction<java.lang.String,COUNTER.VersionedValue,COUNTER.VersionedValue>
-
-