public class EventAnnouncement extends RuntimeEvent
EventAnnouncement
is announcing presence or receiving of an AbstractEvent
. That
announcedEvent
is identified by it's sequence number.Constructor and Description |
---|
EventAnnouncement(AbstractEvent announcedEvent,
int sequenceNumber) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
AbstractEvent |
getAnnouncedEvent() |
int |
getSequenceNumber() |
int |
hashCode() |
void |
read(DataInputView in)
Reads the object's internal data from the given data input view.
|
String |
toString() |
void |
write(DataOutputView out)
Writes the object's internal data to the given data output view.
|
public EventAnnouncement(AbstractEvent announcedEvent, int sequenceNumber)
public AbstractEvent getAnnouncedEvent()
public int getSequenceNumber()
public void write(DataOutputView out) throws IOException
IOReadableWritable
out
- the output view to receive the data.IOException
- thrown if any error occurs while writing to the output streampublic void read(DataInputView in) throws IOException
IOReadableWritable
in
- the input view to read the data fromIOException
- thrown if any error occurs while reading from the input streamCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.