|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.Base
com.tangosol.util.BitHelper
com.tangosol.util.ExternalizableHelper
com.tangosol.net.partition.Ownership
com.tangosol.net.partition.VersionedOwnership
public class VersionedOwnership
An extension of the partition Ownership object which also carries a change version. Ownership versions are used to track changes in the ownership rather than the contents of a partition.
Field Summary | |
---|---|
protected int |
m_nVersion The ownership version. |
Fields inherited from class com.tangosol.net.partition.Ownership |
---|
m_aiOwner |
Constructor Summary | |
---|---|
VersionedOwnership() Default constructor (needed for serialization). |
|
VersionedOwnership(int cBackups, int nVersion) Default constructor (needed for serialization). |
Method Summary | |
---|---|
java.lang.Object |
clone() Create a clone of this Ownership. |
boolean |
equals(java.lang.Object o) Indicates whether some other object is "equal to" this one. |
java.lang.String |
getDescription() Return a human-readable description of this Ownership. |
int |
getVersion() Return the ownership version. |
void |
readExternal(java.io.DataInput in) Restore the contents of this object by loading the object's state from the passed DataInput object. |
void |
readExternal(PofReader in) Restore the contents of a user type instance by reading its state using the specified PofReader object. |
void |
setVersion(int nVersion) Set the new ownership version. |
void |
writeExternal(java.io.DataOutput out) Save the contents of this object by storing the object's state into the passed DataOutput object. |
void |
writeExternal(PofWriter out) Save the contents of a POF user type instance by writing its state using the specified PofWriter object. |
Methods inherited from class com.tangosol.net.partition.Ownership |
---|
getBackupCount, getOwner, getOwners, getPrimaryOwner, hashCode, setOwner, setOwners, setOwners, setPrimaryOwner, toString |
Methods inherited from class com.tangosol.util.BitHelper |
---|
countBits, countBits, countBits, indexOfLSB, indexOfLSB, indexOfLSB, indexOfMSB, indexOfMSB, indexOfMSB, rotateLeft, rotateLeft, rotateLeft, rotateRight, rotateRight, rotateRight, toBitString, toBitString, toBitString, toBytes, toBytes, toBytes, toBytes, toInt, toInt, toLong, toLong |
Field Detail |
---|
protected int m_nVersion
Constructor Detail |
---|
public VersionedOwnership()
public VersionedOwnership(int cBackups, int nVersion)
Method Detail |
---|
public int getVersion()
public void setVersion(int nVersion)
nVersion
- the ownership versionpublic java.lang.String getDescription()
getDescription
in class Ownership
public java.lang.Object clone()
clone
in class Ownership
public boolean equals(java.lang.Object o)
equals
in class Ownership
o
- the object to test for equalitytrue
if this object is the same as the given one; false
otherwise.public void readExternal(java.io.DataInput in) throws java.io.IOException
readExternal
in interface ExternalizableLite
readExternal
in class Ownership
in
- the DataInput stream to read data from in order to restore the state of this objectjava.io.IOException
- if an I/O exception occursjava.io.NotActiveException
- if the object is not in its initial state, and therefore cannot be deserialized intopublic void writeExternal(java.io.DataOutput out) throws java.io.IOException
writeExternal
in interface ExternalizableLite
writeExternal
in class Ownership
out
- the DataOutput stream to write the state of this object tojava.io.IOException
- if an I/O exception occurspublic void readExternal(PofReader in) throws java.io.IOException
readExternal
in interface PortableObject
readExternal
in class Ownership
in
- the PofReader from which to read the object's statejava.io.IOException
- if an I/O error occurspublic void writeExternal(PofWriter out) throws java.io.IOException
writeExternal
in interface PortableObject
writeExternal
in class Ownership
out
- the PofWriter to which to write the object's statejava.io.IOException
- if an I/O error occurs
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |