S - Type of state object this store can operate on.T - Type of state information that the ConsumerState containspublic interface ConsumerStateStore<S extends ConsumerState<T>,T> extends Closeable
ConsumerState.| Modifier and Type | Method and Description |
|---|---|
S |
get(long groupId,
int instanceId) |
void |
getAll(Collection<? super S> result) |
void |
getByGroup(long groupId,
Collection<? super S> result) |
void |
remove(Iterable<? extends S> states) |
void |
save(Iterable<? extends S> states) |
void |
save(S state) |
void getAll(Collection<? super S> result) throws IOException
IOExceptionvoid getByGroup(long groupId,
Collection<? super S> result)
throws IOException
IOExceptionS get(long groupId, int instanceId) throws IOException
null will be returned.IOExceptionvoid save(S state) throws IOException
IOExceptionvoid save(Iterable<? extends S> states) throws IOException
IOExceptionvoid remove(Iterable<? extends S> states) throws IOException
IOExceptionCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.