Package org.apache.catalina.tribes.tipis
Class AbstractReplicatedMap.MapEntry<K,V>
java.lang.Object
org.apache.catalina.tribes.tipis.AbstractReplicatedMap.MapEntry<K,V>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(byte[] data, int offset, int length, boolean diff) apply a diff, or an entire objectboolean
Member[]
getKey()
getValue()
int
hashCode()
boolean
isActive()
boolean
isBackup()
boolean
isCopy()
boolean
boolean
boolean
boolean
isProxy()
boolean
boolean
void
setBackup
(boolean backup) void
setBackupNodes
(Member[] nodes) void
setCopy
(boolean copy) void
setPrimary
(Member m) void
setProxy
(boolean proxy) toString()
-
Constructor Details
-
MapEntry
-
-
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
-
getBackupNodes
-
setPrimary
-
getPrimary
-
getValue
-
setValue
-
getKey
-
setKey
-
hashCode
-
equals
-
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
- intlength
- intdiff
- boolean- Throws:
IOException
- IO errorClassNotFoundException
- Deserialization error
-
toString
-