@PublicApi @ParametersAreNonnullByDefault public class JournalEntry extends Object
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 for persisting.
|
JournalEntry(long id,
JournalIdentifier journalId,
Date creationDate,
String type,
String message)
Creates a new journal entry describing an entry that has been persisted
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Date |
getCreationDate() |
long |
getId() |
JournalIdentifier |
getJournalId() |
String |
getMessage() |
String |
getType() |
int |
hashCode() |
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 JournalEntry(long id, JournalIdentifier journalId, Date creationDate, String type, @Nullable String message)
id
- id of the entryjournalId
- id of journal the entry belongs tocreationDate
- date when the entry was persistedtype
- journal specific type of the entry (max length 255)message
- entry payload (max length 2047)public long getId()
public JournalIdentifier getJournalId()
public Date getCreationDate()
public String getType()
public String getMessage()
Copyright © 2003–2016 Atlassian. All rights reserved.