Class EventuallyConsistentMapEvent<K,​V>

  • public final class EventuallyConsistentMapEvent<K,​V>
    extends Object
    Representation of a EventuallyConsistentMap update notification.
    • Constructor Detail

      • EventuallyConsistentMapEvent

        public EventuallyConsistentMapEvent​(String name,
                                            EventuallyConsistentMapEvent.Type type,
                                            K key,
                                            V value)
        Creates a new event object.
        name - map name
        type - the type of the event
        key - the key the event concerns
        value - the value mapped to the key
    • Method Detail

      • name

        public String name()
        Returns the map name.
        name of map
      • key

        public K key()
        Returns the key this event concerns.
        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.
        the value
      • hashCode

        public int hashCode()
        hashCode in class Object