public class FilePersistentObjectStore<K extends Serializable,V extends Cacheable<K>> extends Object implements PersistentObjectStore<K,V>
| Constructor and Description |
|---|
FilePersistentObjectStore(org.jboss.marshalling.MarshallingConfiguration configuration,
String directoryName,
int subDirectoryCount) |
| Modifier and Type | Method and Description |
|---|---|
protected File |
getFile(K key) |
V |
load(K key)
Load the object from storage.
|
protected static void |
safeClose(Closeable closeable) |
void |
start()
Perform any initialization work.
|
void |
stop()
Perform any shutdown work.
|
void |
store(V obj)
Store the object into storage.
|
public FilePersistentObjectStore(org.jboss.marshalling.MarshallingConfiguration configuration,
String directoryName,
int subDirectoryCount)
public V load(K key)
PersistentObjectStoreload in interface PersistentObjectStore<K extends Serializable,V extends Cacheable<K>>key - the object identifier. It is assumed the key represents something meaningful to the object store.public void start()
PersistentObjectStorestart in interface PersistentObjectStore<K extends Serializable,V extends Cacheable<K>>public void stop()
PersistentObjectStorestop in interface PersistentObjectStore<K extends Serializable,V extends Cacheable<K>>public void store(V obj)
PersistentObjectStorestore in interface PersistentObjectStore<K extends Serializable,V extends Cacheable<K>>obj - the objectprotected static void safeClose(Closeable closeable)
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.