Package csw.event.client
Class EventServiceFactory
java.lang.Object
csw.event.client.EventServiceFactory
Factory to create EventService
-
Constructor Summary
ConstructorDescriptionA java helper to construct EventServiceFactoryEventServiceFactory
(EventStore store) -
Method Summary
Modifier and TypeMethodDescriptionjMake
(ILocationService locationService, akka.actor.typed.ActorSystem<?> actorSystem) Java API to createIEventService
usingILocationService
to resolve Event Server.Java API to createIEventService
using host and port of Event Server.csw.event.api.scaladsl.EventService
make
(csw.location.api.scaladsl.LocationService locationService, akka.actor.typed.ActorSystem<?> system) API to createEventService
usingLocationService
to resolve Event Server.csw.event.api.scaladsl.EventService
API to createEventService
using host and port of Event Server.
-
Constructor Details
-
EventServiceFactory
-
EventServiceFactory
public EventServiceFactory()A java helper to construct EventServiceFactory
-
-
Method Details
-
make
public csw.event.api.scaladsl.EventService make(csw.location.api.scaladsl.LocationService locationService, akka.actor.typed.ActorSystem<?> system) API to createEventService
usingLocationService
to resolve Event Server.- Parameters:
locationService
- instance of location servicesystem
- an actor system required for underlying event streams- Returns:
EventService
which provides handles toEventPublisher
andEventSubscriber
-
make
public csw.event.api.scaladsl.EventService make(String host, int port, akka.actor.typed.ActorSystem<?> system) API to createEventService
using host and port of Event Server.- Parameters:
host
- hostname of event serverport
- port on which event server is runningsystem
- an actor system required for underlying event streams- Returns:
EventService
which provides handles toEventPublisher
andEventSubscriber
-
jMake
public IEventService jMake(ILocationService locationService, akka.actor.typed.ActorSystem<?> actorSystem) Java API to createIEventService
usingILocationService
to resolve Event Server.- Parameters:
locationService
- instance of location serviceactorSystem
- an actor system required for underlying event streams- Returns:
IEventService
which provides handles toIEventPublisher
andIEventSubscriber
-
jMake
Java API to createIEventService
using host and port of Event Server.- Parameters:
host
- hostname of event serverport
- port on which event server is runningsystem
- an actor system required for underlying event streams- Returns:
IEventService
which provides handles toIEventPublisher
andIEventSubscriber
-