public class Message extends Object implements objects.ConfigurableObject, TimestampedObject, com.gemstone.gemfire.cache.util.ObjectSizer, com.gemstone.gemfire.DataSerializable
| Constructor and Description |
|---|
Message() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Two
Messages are considered to be equal if they have
the same content (index) and timestamp. |
void |
fromData(DataInput in) |
int |
getIndex() |
long |
getTimestamp()
Returns the object creation timestamp encoded in the object.
|
void |
init(int index) |
void |
resetTimestamp()
Resets the timestamp encoded in the object to the current time.
|
int |
sizeof(Object o) |
void |
toData(DataOutput out) |
String |
toString() |
void |
validate(int index) |
public void init(int index)
init in interface objects.ConfigurableObjectpublic int getIndex()
getIndex in interface objects.ConfigurableObjectpublic void validate(int index)
validate in interface objects.ConfigurableObjectpublic long getTimestamp()
TimestampedObjectgetTimestamp in interface TimestampedObjectpublic void resetTimestamp()
TimestampedObjectresetTimestamp in interface TimestampedObjectpublic boolean equals(Object o)
Messages are considered to be equal if they have
the same content (index) and timestamp.
This provides stronger validation than the validate(int)
method that only considers the index.public int sizeof(Object o)
sizeof in interface com.gemstone.gemfire.cache.util.ObjectSizerpublic void toData(DataOutput out) throws IOException
toData in interface com.gemstone.gemfire.DataSerializableIOExceptionpublic void fromData(DataInput in) throws IOException, ClassNotFoundException
fromData in interface com.gemstone.gemfire.DataSerializableIOExceptionClassNotFoundExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.