Class EventServiceFactory


  • public class EventServiceFactory
    extends java.lang.Object
    Factory to create EventService
    • 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 create IEventService using ILocationService to resolve Event Server.
      IEventService jMake​(java.lang.String host, int port, akka.actor.typed.ActorSystem<?> system)
      Java API to create IEventService 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 create EventService using LocationService to resolve Event Server.
      csw.event.api.scaladsl.EventService make​(java.lang.String host, int port, akka.actor.typed.ActorSystem<?> system)
      API to create EventService using host and port of Event Server.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 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​(java.lang.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​(java.lang.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