public class FallbackPersistenceBackend extends PersistenceBackend
aggregationScheduler, closed, fallbackPersistence, persistenceBackendMonitor| Modifier | Constructor and Description |
|---|---|
protected |
FallbackPersistenceBackend(File fallbackFile) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected File |
getFallbackFile() |
void |
prepareConnection(PersistenceBackendConfiguration configuration)
Prepare the connection to persistence.
|
void |
printLine(String line) |
protected void |
reallyAccount(Record record)
This method contains the code to save the
Record |
account, accountValidateAggregate, accountWithFallback, flush, getAggregationScheduler, getFallbackPersistence, isOpen, setAggregationScheduler, setFallback, setOpenprotected FallbackPersistenceBackend(File fallbackFile)
protected File getFallbackFile()
public void prepareConnection(PersistenceBackendConfiguration configuration)
prepareConnection in class PersistenceBackendconfiguration - The configuration to create the connectionprotected void reallyAccount(Record record) throws Exception
Record
This method is synchronized on File used, so any actions which
has to modify, rename or delete the file must be synchronized on this
file. To retrieve it use getFallbackFile() method.
This is intended for internal library usage only so that is protectedreallyAccount in class PersistenceBackendExceptionpublic void close()
throws Exception
close in class PersistenceBackendExceptionCopyright © 2016. All Rights Reserved.