Constructor and Description |
---|
BridgeEventDAO(DataAccessObject dao) |
Modifier and Type | Method and Description |
---|---|
ObjectStream<Event> |
streamEvents()
Stream all events.
|
<E extends Event> |
streamEvents(Class<E> type)
Stream all events of a given type.
|
<E extends Event> |
streamEvents(Class<E> type,
SortOrder order)
Stream all events of a given type in a specified order.
|
@Inject public BridgeEventDAO(DataAccessObject dao)
public ObjectStream<Event> streamEvents()
EventDAO
Stream all events.
streamEvents
in interface EventDAO
public <E extends Event> ObjectStream<E> streamEvents(Class<E> type)
EventDAO
Stream all events of a given type.
streamEvents
in interface EventDAO
type
- The event type.public <E extends Event> ObjectStream<E> streamEvents(Class<E> type, SortOrder order)
EventDAO
Stream all events of a given type in a specified order.
streamEvents
in interface EventDAO
type
- The event type.order
- The order.