public class InMemoryDataStoreComponent extends Object implements IDataStoreComponent
| Constructor and Description |
|---|
InMemoryDataStoreComponent()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
<T> void |
clearProperty(String namespace,
String propertyName,
IAsyncResultHandler<T> handler)
Clears a property from the shared state environment, returning the previous
value of the property or null if it was not previously set.
|
<T> void |
getProperty(String namespace,
String propertyName,
T defaultValue,
IAsyncResultHandler<T> handler)
Gets the value of a single property stored in the shared state
environment.
|
<T> boolean |
hasProperty(String namespace,
String propertyName)
Checks whether the requested property exists in the Data Store
|
<T> void |
setProperty(String namespace,
String propertyName,
T value,
IAsyncResultHandler<T> handler)
Sets a single property in the shared state environment, returning
the previous value of the property or null if it was not previously set.
|
<T> void |
setProperty(String namespace,
String propertyName,
T value,
Long expiration,
IAsyncResultHandler<T> handler)
This implementation will ignore the expiration time
|
public <T> boolean hasProperty(String namespace, String propertyName)
IDataStoreComponenthasProperty in interface IDataStoreComponentIDataStoreComponent.hasProperty(java.lang.String, java.lang.String)public <T> void getProperty(String namespace, String propertyName, T defaultValue, IAsyncResultHandler<T> handler)
IDataStoreComponentpublic <T> void setProperty(String namespace, String propertyName, T value, IAsyncResultHandler<T> handler)
IDataStoreComponentpublic <T> void setProperty(String namespace, String propertyName, T value, Long expiration, IAsyncResultHandler<T> handler)
setProperty in interface IDataStoreComponentexpiration - time for the property to be kept in the DataStore before being considered as expiredIDataStoreComponent.setProperty(java.lang.String, java.lang.String, java.lang.Object, java.lang.Long, IAsyncResultHandler)public <T> void clearProperty(String namespace, String propertyName, IAsyncResultHandler<T> handler)
IDataStoreComponentCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.