Class AbstractReplicatedMap.MapEntry<K,V>

java.lang.Object
org.apache.catalina.tribes.tipis.AbstractReplicatedMap.MapEntry<K,V>
All Implemented Interfaces:
Map.Entry<K,V>
Enclosing class:
AbstractReplicatedMap<K,V>

public static class AbstractReplicatedMap.MapEntry<K,V> extends Object implements Map.Entry<K,V>
  • Constructor Details

    • MapEntry

      public MapEntry(K key, V value)
  • Method Details

    • isKeySerializable

      public boolean isKeySerializable()
    • isValueSerializable

      public boolean isValueSerializable()
    • isSerializable

      public boolean isSerializable()
    • isBackup

      public boolean isBackup()
    • setBackup

      public void setBackup(boolean backup)
    • isProxy

      public boolean isProxy()
    • isPrimary

      public boolean isPrimary()
    • isActive

      public boolean isActive()
    • setProxy

      public void setProxy(boolean proxy)
    • isCopy

      public boolean isCopy()
    • setCopy

      public void setCopy(boolean copy)
    • isDiffable

      public boolean isDiffable()
    • setBackupNodes

      public void setBackupNodes(Member[] nodes)
    • getBackupNodes

      public Member[] getBackupNodes()
    • setPrimary

      public void setPrimary(Member m)
    • getPrimary

      public Member getPrimary()
    • getValue

      public V getValue()
      Specified by:
      getValue in interface Map.Entry<K,V>
    • setValue

      public V setValue(V value)
      Specified by:
      setValue in interface Map.Entry<K,V>
    • getKey

      public K getKey()
      Specified by:
      getKey in interface Map.Entry<K,V>
    • setKey

      public K setKey(K key)
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Map.Entry<K,V>
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface Map.Entry<K,V>
      Overrides:
      equals in class Object
    • apply

      public void apply(byte[] data, int offset, int length, boolean diff) throws IOException, ClassNotFoundException
      apply a diff, or an entire object
      Parameters:
      data - byte[]
      offset - int
      length - int
      diff - boolean
      Throws:
      IOException - IO error
      ClassNotFoundException - Deserialization error
    • toString

      public String toString()
      Overrides:
      toString in class Object