public class GlobalOrderOperationPacket extends Object implements IReplicationOrderedPacket
Constructor and Description |
---|
GlobalOrderOperationPacket() |
GlobalOrderOperationPacket(long key,
IReplicationPacketData data) |
Modifier and Type | Method and Description |
---|---|
GlobalOrderOperationPacket |
clone() |
IReplicationOrderedPacket |
cloneWithNewData(IReplicationPacketData<?> newData)
Clones the packet replacing its data with the new data
|
boolean |
equals(Object o) |
IReplicationPacketData |
getData() |
long |
getEndKey()
return the last key for given packets - relevant to range packets - merged discarded/deleted
packets
|
long |
getKey() |
int |
getWeight() |
boolean |
isDataPacket() |
boolean |
isDiscardedPacket() |
void |
readExternal(ObjectInput in) |
void |
readFromSwap(ObjectInput in) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
void |
writeToSwap(ObjectOutput out) |
public GlobalOrderOperationPacket()
public GlobalOrderOperationPacket(long key, IReplicationPacketData data)
public IReplicationPacketData getData()
getData
in interface IReplicationOrderedPacket
public long getKey()
getKey
in interface IReplicationOrderedPacket
public long getEndKey()
IReplicationOrderedPacket
getEndKey
in interface IReplicationOrderedPacket
public boolean isDataPacket()
isDataPacket
in interface IReplicationOrderedPacket
public boolean isDiscardedPacket()
isDiscardedPacket
in interface IReplicationOrderedPacket
public GlobalOrderOperationPacket clone()
clone
in interface IReplicationOrderedPacket
clone
in class Object
public IReplicationOrderedPacket cloneWithNewData(IReplicationPacketData<?> newData)
IReplicationOrderedPacket
cloneWithNewData
in interface IReplicationOrderedPacket
public int getWeight()
getWeight
in interface IReplicationOrderedPacket
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void readFromSwap(ObjectInput in) throws IOException, ClassNotFoundException
readFromSwap
in interface ISwapExternalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void writeToSwap(ObjectOutput out) throws IOException
writeToSwap
in interface ISwapExternalizable
IOException
Copyright © GigaSpaces.