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() |
SharedReentrantReadWriteLockProvider |
getSharedReentrantReadWriteLockProvider() |
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, wait
getObject, setObject
public PropertiesFileAttributeStore()
public PropertiesFileAttributeStore(String path)
public String get(String key) throws IOException
get
in interface AttributeStore
IOException
public String set(String key, String value) throws IOException
set
in interface AttributeStore
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public String remove(String name) throws IOException
remove
in interface AttributeStore
IOException
public SharedLockProvider getSharedLockProvider()
getSharedLockProvider
in interface AttributeStore
public SharedReentrantReadWriteLockProvider getSharedReentrantReadWriteLockProvider()
getSharedReentrantReadWriteLockProvider
in interface AttributeStore
public <T> T withProperties(PropertiesHandler<T> propertiesHandler) throws IOException
IOException
public byte[] getBytes(String key) throws IOException
getBytes
in interface AttributeStore
IOException
public byte[] setBytes(String key, byte[] value) throws IOException
setBytes
in interface AttributeStore
IOException
Copyright © GigaSpaces.