public class FileResourceEventStore extends AbstractResourceEventStore
Constructor and Description |
---|
FileResourceEventStore(File location)
Constructs an instance specifying the directory of this storage in the local file system.
|
Modifier and Type | Method and Description |
---|---|
protected StreamingStorage |
getStorage()
Returns the underlying resource events storage.
|
protected Executor |
getSynchronizer()
Returns an executor that guarantees runnable instances handling data related to this store
are never executed concurrently but one at a time across the whole web application.
|
boolean |
isCorrupted()
Determines whether this store is corrupted.
|
protected void |
setCorrupted(boolean corrupted)
Changes the corrupted state of the store.
|
public FileResourceEventStore(File location)
location
- the directory of this storage.IllegalArgumentException
- if the directory does not exist and cannot be created or it exists but cannot be read or written.public boolean isCorrupted()
Store
true
if this store is corrupted; false
otherwise.protected void setCorrupted(boolean corrupted)
AbstractResourceEventStore
setCorrupted
in class AbstractResourceEventStore
corrupted
- true
if the store becomes corrupted;false
otherwise.protected Executor getSynchronizer() throws IOException
AbstractResourceEventStore
getSynchronizer
in class AbstractResourceEventStore
IOException
- if an executor cannot be created.protected StreamingStorage getStorage()
AbstractResourceEventStore
getStorage
in class AbstractResourceEventStore