CollectionManager
public interface DataStructureManager extends CollectionManager
Counter
and remove operation for all distributed data structures.Modifier and Type | Method | Description |
---|---|---|
Counter |
createCounter(java.lang.String key) |
Creates the Counter against the provided name.
|
Counter |
createCounter(java.lang.String key,
long initialValue) |
Creates the Counter against the provided name.
|
Counter |
createCounter(java.lang.String name,
DataStructureAttributes attributes,
long initialValue,
WriteThruOptions options) |
Creates the Counter against the provided name and configures it according to the provided user configuration as attributes.
|
Counter |
getCounter(java.lang.String key) |
Gets Counter interface against the provided name.
|
Counter |
getCounter(java.lang.String key,
ReadThruOptions options) |
Gets Counter interface against the provided name with backing source ReadThruOptions.
|
void |
remove(java.lang.String key) |
Remove the specified data structure.
|
void |
remove(java.lang.String key,
WriteThruOptions writeThruOptions) |
Remove the specified data structure.
|
createHashSet, createHashSet, createList, createList, createMap, createMap, createQueue, createQueue, getHashSet, getHashSet, getList, getList, getMap, getMap, getQueue, getQueue
Counter createCounter(java.lang.String key) throws CacheException, java.lang.IllegalArgumentException
key
- This is the unqiue identifier for Counter object. Initial value of Counter is zero.CacheException
java.lang.IllegalArgumentException
Counter createCounter(java.lang.String key, long initialValue) throws CacheException, java.lang.IllegalArgumentException
key
- This is the unqiue identifier for Counter object.initialValue
- This is the starting index of Counter object.CacheException
java.lang.IllegalArgumentException
Counter createCounter(java.lang.String name, DataStructureAttributes attributes, long initialValue, WriteThruOptions options) throws CacheException, java.lang.IllegalArgumentException
name
- This is the unqiue identifier for Counter object.attributes
- DataStructureAttributes
for providing user configuration for this collection.initialValue
- This is the starting index of Counter objectoptions
- WriteThruOptions
regarding updating data source. This can be WriteThru, WriteBehind or none.CacheException
java.lang.IllegalArgumentException
void remove(java.lang.String key) throws CacheException, java.io.IOException
key
- Name of the data type.CacheException
java.io.IOException
void remove(java.lang.String key, WriteThruOptions writeThruOptions) throws CacheException, java.io.IOException
key
- Name of the data type.writeThruOptions
- WriteThruOptions
regarding updating data source. This can be WriteThru, WriteBehind or none.CacheException
java.io.IOException
Counter getCounter(java.lang.String key) throws CacheException, java.lang.IllegalArgumentException
key
- Name of Counter.CacheException
java.lang.IllegalArgumentException
Counter getCounter(java.lang.String key, ReadThruOptions options) throws CacheException, java.lang.IllegalArgumentException
key
- Name of Counter.options
- ReadThruOptions
to read from data source. These can be either ReadThru, ReadThruForced or none.CacheException
java.lang.IllegalArgumentException