|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ehcache.transactions.xa.journal.TransientJournal<K>
org.ehcache.transactions.xa.journal.PersistentJournal<K>
public class PersistentJournal<K>
A persistent, but not durable Journal implementation.
This implementation will persist saved states during close and restore them during open. If close is not called,
all saved states are lost.
| Nested Class Summary | |
|---|---|
protected static class |
PersistentJournal.SerializableEntry<K>
|
| Nested classes/interfaces inherited from class org.ehcache.transactions.xa.journal.TransientJournal |
|---|
TransientJournal.Entry<K> |
| Field Summary |
|---|
| Fields inherited from class org.ehcache.transactions.xa.journal.TransientJournal |
|---|
states |
| Constructor Summary | |
|---|---|
PersistentJournal(java.io.File directory,
Serializer<K> keySerializer)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the journal. |
void |
open()
Open the journal. |
| Methods inherited from class org.ehcache.transactions.xa.journal.TransientJournal |
|---|
forget, getInDoubtKeys, heuristicDecisions, isHeuristicallyTerminated, isInDoubt, recover, saveCommitted, saveInDoubt, saveRolledBack |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PersistentJournal(java.io.File directory,
Serializer<K> keySerializer)
| Method Detail |
|---|
public void open()
throws java.io.IOException
Journal
open in interface Journal<K>open in class TransientJournal<K>java.io.IOException - if there was an error opening the journal.
public void close()
throws java.io.IOException
Journal
close in interface Journal<K>close in class TransientJournal<K>java.io.IOException - if there was an error closing the journal.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||