@ParametersAreNonnullByDefault public class JournalEntry extends Object implements NotExportable
Typical user of journal entries is indexing subsystem, where it's important that indexes on all cluster nodes will be kept in sync. When a document changes, indexing subsystem would create a new journal entry with details of the change. Later on nodes will ask for these entries and then update their indexes accordingly.
Constructor and Description |
---|
JournalEntry(JournalIdentifier journalId,
String type,
String message)
Creates a new journal entry.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Date |
getCreationDate() |
long |
getId() |
JournalIdentifier |
getJournalId() |
String |
getMessage() |
String |
getType() |
int |
hashCode() |
void |
setJournalId(JournalIdentifier journalId) |
String |
toString() |
public JournalEntry(JournalIdentifier journalId, String type, @Nullable String message)
journalId
- id of journal the entry belongs totype
- journal specific type of the entry (max length 255)message
- entry payload (max length 2047)public long getId()
public JournalIdentifier getJournalId()
public void setJournalId(JournalIdentifier journalId)
public Date getCreationDate()
public String getType()
public String getMessage()
Copyright © 2003–2017 Atlassian. All rights reserved.