Package csw.event.client
Class EventServiceFactory
- java.lang.Object
-
- csw.event.client.EventServiceFactory
-
public class EventServiceFactory extends java.lang.Object
Factory to create EventService
-
-
Constructor Summary
Constructors Constructor Description EventServiceFactory()
A java helper to construct EventServiceFactoryEventServiceFactory(EventStore store)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IEventService
jMake(ILocationService locationService, akka.actor.typed.ActorSystem<?> actorSystem)
Java API to createIEventService
usingILocationService
to resolve Event Server.IEventService
jMake(java.lang.String host, int port, akka.actor.typed.ActorSystem<?> system)
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
make(java.lang.String host, int port, akka.actor.typed.ActorSystem<?> system)
API to createEventService
using host and port of Event Server.
-
-
-
Constructor Detail
-
EventServiceFactory
public EventServiceFactory(EventStore store)
-
EventServiceFactory
public EventServiceFactory()
A java helper to construct EventServiceFactory
-
-
Method Detail
-
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(java.lang.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
public IEventService jMake(java.lang.String host, int port, akka.actor.typed.ActorSystem<?> system)
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
-
-