public abstract class VisorDataTransferObject extends Object implements Externalizable
Constructor and Description |
---|
VisorDataTransferObject() |
Modifier and Type | Method and Description |
---|---|
byte |
getProtocolVersion() |
void |
readExternal(ObjectInput in) |
protected abstract void |
readExternalData(byte protoVer,
ObjectInput in)
Load object's specific data content.
|
protected static <T> List<T> |
toList(Collection<T> col) |
void |
writeExternal(ObjectOutput out) |
protected abstract void |
writeExternalData(ObjectOutput out)
Save object's specific data content.
|
@Nullable protected static <T> List<T> toList(Collection<T> col)
T
- Collection type.col
- Source collection.public byte getProtocolVersion()
protected abstract void writeExternalData(ObjectOutput out) throws IOException
out
- Output object to write data content.IOException
- If I/O errors occur.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
protected abstract void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException
protoVer
- Input object version.in
- Input object to load data content.IOException
- If I/O errors occur.ClassNotFoundException
- If the class for an object being restored cannot be found.public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017