Package com.tangosol.io
Class SimpleEvolvable
- java.lang.Object
-
- com.tangosol.io.SimpleEvolvable
-
-
Field Summary
Fields Modifier and Type Field Description protected Binary
m_binFutureData
Future data.protected int
m_nDataVersion
Data version.protected int
m_nImplVersion
Implementation version.
-
Constructor Summary
Constructors Constructor Description SimpleEvolvable(int nImplVersion)
Create SimpleEvolvable instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDataVersion()
Obtain the version associated with the data stream from which this object was deserialized.Binary
getFutureData()
Return all the unknown remainder of the data stream from which this object was deserialized.int
getImplVersion()
Determine the serialization version supported by the implementing class.void
setDataVersion(int nDataVersion)
Set the version associated with the data stream with which this object is being deserialized.void
setFutureData(Binary binFutureData)
Store the unknown remainder of the data stream from which this object is being deserialized.
-
-
-
Field Detail
-
m_nImplVersion
protected int m_nImplVersion
Implementation version.
-
m_nDataVersion
protected int m_nDataVersion
Data version.
-
m_binFutureData
protected Binary m_binFutureData
Future data.
-
-
Method Detail
-
getImplVersion
public int getImplVersion()
Determine the serialization version supported by the implementing class.- Specified by:
getImplVersion
in interfaceEvolvable
- Returns:
- the serialization version supported by this object
-
getDataVersion
public int getDataVersion()
Obtain the version associated with the data stream from which this object was deserialized. If the object was constructed (not deserialized), the data version is the same as the implementation version.- Specified by:
getDataVersion
in interfaceEvolvable
- Returns:
- the version of the data used to initialize this object, greater than or equal to zero
-
setDataVersion
public void setDataVersion(int nDataVersion)
Set the version associated with the data stream with which this object is being deserialized.- Specified by:
setDataVersion
in interfaceEvolvable
- Parameters:
nDataVersion
- the version of the data in the data stream that will be used to deserialize this object; greater than or equal to zero
-
getFutureData
public Binary getFutureData()
Return all the unknown remainder of the data stream from which this object was deserialized. The remainder is unknown because it is data that was originally written by a future version of this object's class.- Specified by:
getFutureData
in interfaceEvolvable
- Returns:
- future data in binary form
-
setFutureData
public void setFutureData(Binary binFutureData)
Store the unknown remainder of the data stream from which this object is being deserialized. The remainder is unknown because it is data that was originally written by a future version of this object's class.- Specified by:
setFutureData
in interfaceEvolvable
- Parameters:
binFutureData
- future data in binary form
-
-