public class RedisSetState<T> extends AbstractRedisState<T> implements SetState<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
RedisSetState.Factory<T> |
config, id, pool, serializer| Constructor and Description |
|---|
RedisSetState(String id) |
RedisSetState(String id,
RedisConfig config) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T e)
Adds the specified element to this set if it is not already present.
|
boolean |
addAll(Collection<? extends T> c)
Adds all of the elements in the specified collection to this set if
they're not already present (optional operation).
|
void |
beginCommit(Long txid) |
void |
clear()
Clear the whole
Set contained in this State |
void |
commit(Long txid) |
Set<T> |
get() |
flushAll, generateKey, generateKey, generateKeypublic RedisSetState(String id)
public RedisSetState(String id, RedisConfig config)
public void beginCommit(Long txid)
beginCommit in interface storm.trident.state.Statepublic void commit(Long txid)
commit in interface storm.trident.state.Statepublic boolean add(T e)
SetStatepublic boolean addAll(Collection<? extends T> c)
SetStateCopyright © 2013. All rights reserved.