public abstract class AbstractEvent extends Object implements IOReadableWritable
| Constructor and Description |
|---|
AbstractEvent()
Constructs a new abstract event object.
|
AbstractEvent(long timestamp)
Constructs a new abstract event object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
long |
getSequenceNumber() |
long |
getTimestamp()
Returns the timestamp of the event.
|
int |
hashCode() |
void |
read(DataInputView in) |
static String |
timestampToString(long timestamp)
Converts the timestamp of an event from its "milliseconds since beginning the epoch"
representation into a unified string representation.
|
void |
write(DataOutputView out) |
public AbstractEvent(long timestamp)
timestamp - the timestamp of the event.public AbstractEvent()
public long getSequenceNumber()
public void read(DataInputView in) throws IOException
read in interface IOReadableWritableIOExceptionpublic void write(DataOutputView out) throws IOException
write in interface IOReadableWritableIOExceptionpublic long getTimestamp()
public static String timestampToString(long timestamp)
timestamp - the timestamp in milliseconds since the beginning of "the epoch"Copyright © 2014 The Apache Software Foundation. All rights reserved.