Class JournalEntry
- java.lang.Object
-
- com.atlassian.confluence.impl.journal.JournalEntry
-
- All Implemented Interfaces:
NotExportable
@ParametersAreNonnullByDefault public class JournalEntry extends Object implements NotExportable
Entry in a journal. Journal entries contain a message that should be processed by all nodes at some point of time in the future.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.
- Since:
- 5.6
-
-
Constructor Summary
Constructors Constructor Description JournalEntry(JournalIdentifier journalId, String type, @Nullable String message)
Creates a new journal entry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Date
getCreationDate()
long
getId()
JournalIdentifier
getJournalId()
String
getMessage()
int
getTriedTimes()
String
getType()
int
hashCode()
void
setJournalId(JournalIdentifier journalId)
String
toString()
-
-
-
Constructor Detail
-
JournalEntry
public JournalEntry(JournalIdentifier journalId, String type, @Nullable String message)
Creates a new journal entry.- Parameters:
journalId
- id of journal the entry belongs totype
- journal specific type of the entry (max length 255)message
- entry payload (max length 2047)
-
-
Method Detail
-
getId
public long getId()
-
getJournalId
public JournalIdentifier getJournalId()
-
setJournalId
public void setJournalId(JournalIdentifier journalId)
-
getCreationDate
public Date getCreationDate()
-
getType
public String getType()
-
getMessage
public String getMessage()
-
getTriedTimes
public int getTriedTimes()
-
-