public class QueryService<T>
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
QueryService(EventProcessor<T> eventProcessor) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCallback(org.springframework.util.concurrent.ListenableFutureCallback<Event> callback) |
void |
deleteAll()
ONLY for testing purposes!
|
T |
get(java.lang.String id) |
java.util.Collection<T> |
getAll() |
void |
receive(Event event) |
void |
removeCallback(org.springframework.util.concurrent.ListenableFutureCallback<Event> callback) |
int |
size() |
protected QueryService(EventProcessor<T> eventProcessor)
public final void addCallback(org.springframework.util.concurrent.ListenableFutureCallback<Event> callback)
public final void removeCallback(org.springframework.util.concurrent.ListenableFutureCallback<Event> callback)
public void receive(Event event)
public final T get(java.lang.String id)
public final java.util.Collection<T> getAll()
public final int size()
public final void deleteAll()