Package io.atomix.client.value
Class AtomicValueEvent<V>
java.lang.Object
io.atomix.client.event.AbstractEvent<AtomicValueEvent.Type,Void>
io.atomix.client.value.AtomicValueEvent<V>
- Type Parameters:
V- atomic value type
- All Implemented Interfaces:
Event<AtomicValueEvent.Type,Void>
Representation of a AtomicValue update notification.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAtomicValueEvent(AtomicValueEvent.Type type, V newValue, V oldValue) Creates a new event object. -
Method Summary
Methods inherited from class io.atomix.client.event.AbstractEvent
subject, time, type
-
Constructor Details
-
AtomicValueEvent
Creates a new event object.- Parameters:
newValue- the new valueoldValue- the old value
-
-
Method Details
-
newValue
Returns the newly set value.- Returns:
- the new value
-
oldValue
Returns the old replaced value.- Returns:
- the old value
-
equals
-
hashCode
public int hashCode() -
toString
- Overrides:
toStringin classAbstractEvent<AtomicValueEvent.Type,Void>
-