Class EventServiceFactory

java.lang.Object
csw.event.client.EventServiceFactory

public class EventServiceFactory extends Object
Factory to create EventService
  • Constructor Details

    • EventServiceFactory

      public EventServiceFactory(EventStore store)
    • 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 create EventService using LocationService to resolve Event Server.

      Parameters:
      locationService - instance of location service
      system - an actor system required for underlying event streams
      Returns:
      EventService which provides handles to EventPublisher and EventSubscriber
    • make

      public csw.event.api.scaladsl.EventService make(String host, int port, akka.actor.typed.ActorSystem<?> system)
      API to create EventService using host and port of Event Server.

      Parameters:
      host - hostname of event server
      port - port on which event server is running
      system - an actor system required for underlying event streams
      Returns:
      EventService which provides handles to EventPublisher and EventSubscriber
    • jMake

      public IEventService jMake(ILocationService locationService, akka.actor.typed.ActorSystem<?> actorSystem)
      Java API to create IEventService using ILocationService to resolve Event Server.

      Parameters:
      locationService - instance of location service
      actorSystem - an actor system required for underlying event streams
      Returns:
      IEventService which provides handles to IEventPublisher and IEventSubscriber
    • jMake

      public IEventService jMake(String host, int port, akka.actor.typed.ActorSystem<?> system)
      Java API to create IEventService using host and port of Event Server.

      Parameters:
      host - hostname of event server
      port - port on which event server is running
      system - an actor system required for underlying event streams
      Returns:
      IEventService which provides handles to IEventPublisher and IEventSubscriber