public class PropertiesFileAttributeStore extends Object implements AttributeStore, Serializable
| Constructor and Description |
|---|
PropertiesFileAttributeStore() |
PropertiesFileAttributeStore(String path) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
get(String key) |
byte[] |
getBytes(String key) |
SharedLockProvider |
getSharedLockProvider() |
String |
remove(String name) |
String |
set(String key,
String value) |
byte[] |
setBytes(String key,
byte[] value) |
<T> T |
withProperties(PropertiesHandler<T> propertiesHandler) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetObject, setObjectpublic PropertiesFileAttributeStore()
public PropertiesFileAttributeStore(String path)
public String get(String key) throws IOException
get in interface AttributeStoreIOExceptionpublic String set(String key, String value) throws IOException
set in interface AttributeStoreIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic String remove(String name) throws IOException
remove in interface AttributeStoreIOExceptionpublic SharedLockProvider getSharedLockProvider()
getSharedLockProvider in interface AttributeStorepublic <T> T withProperties(PropertiesHandler<T> propertiesHandler) throws IOException
IOExceptionpublic byte[] getBytes(String key) throws IOException
getBytes in interface AttributeStoreIOExceptionpublic byte[] setBytes(String key, byte[] value) throws IOException
setBytes in interface AttributeStoreIOExceptionCopyright © GigaSpaces.