Package csw.event.client
Class EventServiceFactory
java.lang.Object
csw.event.client.EventServiceFactory
Factory to create EventService
-
Constructor Summary
ConstructorsConstructorDescriptionA java helper to construct EventServiceFactoryEventServiceFactory(EventStore store) -
Method Summary
Modifier and TypeMethodDescriptionjMake(ILocationService locationService, akka.actor.typed.ActorSystem<?> actorSystem) Java API to createIEventServiceusingILocationServiceto resolve Event Server.Java API to createIEventServiceusing host and port of Event Server.csw.event.api.scaladsl.EventServicemake(csw.location.api.scaladsl.LocationService locationService, akka.actor.typed.ActorSystem<?> system) API to createEventServiceusingLocationServiceto resolve Event Server.csw.event.api.scaladsl.EventServiceAPI to createEventServiceusing 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 createEventServiceusingLocationServiceto resolve Event Server.- Parameters:
locationService- instance of location servicesystem- an actor system required for underlying event streams- Returns:
EventServicewhich provides handles toEventPublisherandEventSubscriber
-
make
public csw.event.api.scaladsl.EventService make(String host, int port, akka.actor.typed.ActorSystem<?> system) API to createEventServiceusing 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:
EventServicewhich provides handles toEventPublisherandEventSubscriber
-
jMake
public IEventService jMake(ILocationService locationService, akka.actor.typed.ActorSystem<?> actorSystem) Java API to createIEventServiceusingILocationServiceto resolve Event Server.- Parameters:
locationService- instance of location serviceactorSystem- an actor system required for underlying event streams- Returns:
IEventServicewhich provides handles toIEventPublisherandIEventSubscriber
-
jMake
Java API to createIEventServiceusing 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:
IEventServicewhich provides handles toIEventPublisherandIEventSubscriber
-