public class ChangeLogRecord extends ClusterRecord
END_MARKER, record, workspace| Constructor and Description |
|---|
ChangeLogRecord(ChangeLog changes,
List<EventState> events,
Record record,
String workspace,
long timestamp,
String userData)
Create a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doRead()
Deserialize this record.
|
protected void |
doWrite()
Serialize this record.
|
ChangeLog |
getChanges()
Return the changes.
|
List<EventState> |
getEvents()
Return the events.
|
long |
getTimestamp()
Returns the timestamp.
|
String |
getUserData()
Returns the user data.
|
void |
process(ClusterRecordProcessor processor)
Process this record, calling the appropriate
process
method. |
protected void |
readEndMarker()
Read end marker.
|
cancelUpdate, getRevision, getWorkspace, read, update, writepublic ChangeLogRecord(ChangeLog changes, List<EventState> events, Record record, String workspace, long timestamp, String userData)
changes - changesevents - list of EventStatesrecord - recordworkspace - workspacetimestamp - when the changes for this record were persisted.userData - the user data associated with these changes.protected void doRead()
throws JournalException
doRead in class ClusterRecordJournalException - if an error occursprotected void readEndMarker()
throws JournalException
readEndMarker in class ClusterRecordJournalException - if an error occursprotected void doWrite()
throws JournalException
doWrite in class ClusterRecordJournalException - if an error occurspublic void process(ClusterRecordProcessor processor)
process
method.process in class ClusterRecordprocessor - processorpublic ChangeLog getChanges()
public List<EventState> getEvents()
public long getTimestamp()
public String getUserData()
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.