public interface Delta
DataOutput
and DataInput parameters.| Modifier and Type | Method and Description |
|---|---|
void |
fromDelta(java.io.DataInput in)
This method is invoked on an existing application object when an update is
received as a delta.
|
boolean |
hasDelta()
Returns true if this object has pending changes it can write out.
|
void |
toDelta(java.io.DataOutput out)
This method is invoked on an application object at the delta sender, if
GemFire determines the presence of a delta by calling
hasDelta() on the object. |
boolean hasDelta()
void toDelta(java.io.DataOutput out)
throws java.io.IOException
hasDelta() on the object. The delta is written to the
DataOutput object provided by GemFire.
Any delta state should be reset in this method.java.io.IOExceptionvoid fromDelta(java.io.DataInput in)
throws java.io.IOException,
InvalidDeltaException
InvalidDeltaException
when the delta in the DataInput cannot be applied to the object.
GemFire automatically handles an InvalidDeltaException by
reattempting the update by sending the full application object.java.io.IOExceptionInvalidDeltaException