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, write
public ChangeLogRecord(ChangeLog changes, List<EventState> events, Record record, String workspace, long timestamp, String userData)
changes
- changesevents
- list of EventState
srecord
- 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 ClusterRecord
JournalException
- if an error occursprotected void readEndMarker() throws JournalException
readEndMarker
in class ClusterRecord
JournalException
- if an error occursprotected void doWrite() throws JournalException
doWrite
in class ClusterRecord
JournalException
- if an error occurspublic void process(ClusterRecordProcessor processor)
process
method.process
in class ClusterRecord
processor
- processorpublic ChangeLog getChanges()
public List<EventState> getEvents()
public long getTimestamp()
public String getUserData()
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.