Class EventuallyConsistentMapEvent<K,​V>


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

      • EventuallyConsistentMapEvent

        public EventuallyConsistentMapEvent​(java.lang.String name,
                                            EventuallyConsistentMapEvent.Type type,
                                            K key,
                                            V value)
        Creates a new event object.
        Parameters:
        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 java.lang.String name()
        Returns the map name.
        Returns:
        name of map
      • 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
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object