Interface XStreamJournal<K extends Key,V extends XStreamJournalEntry>
- All Known Implementing Classes:
XStreamJournalImpl
A utility to journal changes to an entity as list of XStream-ed objects.
- Since:
- 9.5
-
Method Summary
Modifier and TypeMethodDescriptionboolean
appendToJournal
(K key, V journalEntry) Append an entry to the journal provided the journal is open.void
closeJournal
(K key) Closes the journal.loadJournal
(K key) Opens and loads entire journal for a key.void
openJournal
(K key) Opens a journal for new item.
-
Method Details
-
loadJournal
Opens and loads entire journal for a key. -
openJournal
Opens a journal for new item. -
closeJournal
Closes the journal. After this call no more entries are added to the journal and the journal file is deleted. -
appendToJournal
Append an entry to the journal provided the journal is open.- Returns:
- true if journal write actually happened.
-