|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.impl.journal.CachingJournalStateStore
public class CachingJournalStateStore
| Constructor Summary | |
|---|---|
CachingJournalStateStore(JournalStateStore delegate,
com.atlassian.cache.CacheFactory cacheFactory)
|
|
| Method Summary | |
|---|---|
long |
getMostRecentId(JournalIdentifier journalId)
Returns the most recent id for a journal or 0 if no id has been stored yet. |
void |
resetAllJournalStates()
Resets the state of all journals. |
void |
setMostRecentId(JournalIdentifier journalId,
long id)
Set the most recent identifier for a journal. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CachingJournalStateStore(JournalStateStore delegate,
com.atlassian.cache.CacheFactory cacheFactory)
| Method Detail |
|---|
public long getMostRecentId(@Nonnull
JournalIdentifier journalId)
throws org.springframework.dao.DataAccessException
JournalStateStoreNew journal is automatically created if a journal with the given name does not exists.
getMostRecentId in interface JournalStateStorejournalId - id of the journal
org.springframework.dao.DataAccessException - if reading the id failed
public void setMostRecentId(@Nonnull
JournalIdentifier journalId,
long id)
throws org.springframework.dao.DataAccessException
JournalStateStoreNew journal is automatically created if a journal with the given name does not exists.
Only positive identifiers (e.g. > 0) can be stored.
setMostRecentId in interface JournalStateStorejournalId - id of the journalid - identifier to store as the most recent id
org.springframework.dao.DataAccessException - if persisting the id failed.
public void resetAllJournalStates()
throws org.springframework.dao.DataAccessException
JournalStateStore
After calling this method all
JournalStateStore.getMostRecentId(com.atlassian.confluence.api.model.journal.JournalIdentifier)
calls will initially return 0.
resetAllJournalStates in interface JournalStateStoreorg.springframework.dao.DataAccessException - if reset fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||