public interface ConnectionStrategyClientConnector
ConnectionStrategyClientConnector
listens for occurred events (Event
)
of the server side and has the task to encode / process the transferred events at the client side.Modifier and Type | Method and Description |
---|---|
void |
deactivate()
Deactivates the
ConnectionStrategyClientConnector . |
void |
init(EventServiceAsync anEventService)
Initializes the
ConnectionStrategyClientConnector with
the EventServiceAsync . |
boolean |
isInitialized()
Checks if the
ConnectionStrategyClientConnector is
initialized. |
void |
listen(EventNotification anEventNotification,
AsyncCallback<List<DomainEvent>> aCallback)
The listen method implements the listen / connection strategy to receive occurred events.
|
void init(EventServiceAsync anEventService)
ConnectionStrategyClientConnector
with
the EventServiceAsync
.anEventService
- the EventServiceAsync
void deactivate()
ConnectionStrategyClientConnector
.boolean isInitialized()
ConnectionStrategyClientConnector
is
initialized.ConnectionStrategyClientConnector
is
initialized, otherwise falsevoid listen(EventNotification anEventNotification, AsyncCallback<List<DomainEvent>> aCallback)
EventNotification
and to the callback.anEventNotification
- EventNotification
which will be notified about occurred / received eventsaCallback
- The callback will be notified about occurred / received events.Copyright © 2012. All Rights Reserved.