Package csw.event.api.javadsl
Interface IEventService
-
public interface IEventService
An interface to provide access toIEventPublisher
andIEventSubscriber
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description csw.event.api.scaladsl.EventService
asScala()
Returns the Scala API for this instance of event serviceIEventPublisher
defaultPublisher()
A default instance ofIEventPublisher
.IEventSubscriber
defaultSubscriber()
A default instance ofIEventSubscriber
.scala.concurrent.ExecutionContext
executionContext()
IEventPublisher
makeNewPublisher()
Create a new instance ofIEventPublisher
with a separate underlying connection than the default instance.IEventSubscriber
makeNewSubscriber()
Create a new instance ofIEventPublisher
with a separate underlying connection than the default instance.
-
-
-
Method Detail
-
asScala
csw.event.api.scaladsl.EventService asScala()
Returns the Scala API for this instance of event service- Returns:
- (undocumented)
-
defaultPublisher
IEventPublisher defaultPublisher()
A default instance ofIEventPublisher
. This could be shared across under normal operating conditions to share the underlying connection to event server.- Returns:
- (undocumented)
-
defaultSubscriber
IEventSubscriber defaultSubscriber()
A default instance ofIEventSubscriber
. This could be shared across under normal operating conditions to share the underlying connection to event server.- Returns:
- (undocumented)
-
executionContext
scala.concurrent.ExecutionContext executionContext()
-
makeNewPublisher
IEventPublisher makeNewPublisher()
Create a new instance ofIEventPublisher
with a separate underlying connection than the default instance. The new instance will be required when the location of Event Service is updated or in case the performance requirements of a publish operation demands a separate connection to be used.- Returns:
- new instance of
IEventPublisher
-
makeNewSubscriber
IEventSubscriber makeNewSubscriber()
Create a new instance ofIEventPublisher
with a separate underlying connection than the default instance. The new instance will be required when the location of Event Service is updated or in case the performance requirements of a subscribe operation demands a separate connection to be used.- Returns:
- new instance of
IEventSubscriber
-
-