Package org.onosproject.store.service
Class EventuallyConsistentMapEvent<K,V>
- java.lang.Object
-
- org.onosproject.store.service.EventuallyConsistentMapEvent<K,V>
-
public final class EventuallyConsistentMapEvent<K,V> extends Object
Representation of a EventuallyConsistentMap update notification.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEventuallyConsistentMapEvent.Type
-
Constructor Summary
Constructors Constructor Description EventuallyConsistentMapEvent(String name, EventuallyConsistentMapEvent.Type type, K key, V value)Creates a new event object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)inthashCode()Kkey()Returns the key this event concerns.Stringname()Returns the map name.StringtoString()EventuallyConsistentMapEvent.Typetype()Returns the type of the event.Vvalue()Returns the value associated with this event.
-
-
-
Constructor Detail
-
EventuallyConsistentMapEvent
public EventuallyConsistentMapEvent(String name, EventuallyConsistentMapEvent.Type type, K key, V value)
Creates a new event object.- Parameters:
name- map nametype- the type of the eventkey- the key the event concernsvalue- the value mapped to the key
-
-
Method Detail
-
name
public String name()
Returns the map name.- Returns:
- name of map
-
type
public EventuallyConsistentMapEvent.Type type()
Returns the type of the event.- Returns:
- the type of the event
-
key
public K key()
Returns the key this event concerns.- Returns:
- the key
-
value
public V value()
Returns the value associated with this event. If type is REMOVE, this is the value that was removed. If type is PUT, this is the new value.- Returns:
- the value
-
-