Class ActorSystemProviderImpl
- java.lang.Object
-
- org.opendaylight.controller.cluster.akka.impl.ActorSystemProviderImpl
-
- All Implemented Interfaces:
AutoCloseable
,ActorSystemProvider
public class ActorSystemProviderImpl extends Object implements ActorSystemProvider, AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description ActorSystemProviderImpl(ClassLoader classLoader, akka.actor.Props quarantinedMonitorActorProps, com.typesafe.config.Config akkaConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description scala.concurrent.Future<akka.actor.Terminated>
asyncClose()
void
close()
void
close(scala.concurrent.duration.FiniteDuration wait)
akka.actor.ActorSystem
getActorSystem()
Returns the ActorSystem.ListenerRegistration<ActorSystemProviderListener>
registerActorSystemProviderListener(ActorSystemProviderListener listener)
Register a listener for ActorSystem lifecycle events.
-
-
-
Constructor Detail
-
ActorSystemProviderImpl
public ActorSystemProviderImpl(ClassLoader classLoader, akka.actor.Props quarantinedMonitorActorProps, com.typesafe.config.Config akkaConfig)
-
-
Method Detail
-
getActorSystem
public akka.actor.ActorSystem getActorSystem()
Description copied from interface:ActorSystemProvider
Returns the ActorSystem.- Specified by:
getActorSystem
in interfaceActorSystemProvider
- Returns:
- the ActorSystem.
-
registerActorSystemProviderListener
public ListenerRegistration<ActorSystemProviderListener> registerActorSystemProviderListener(ActorSystemProviderListener listener)
Description copied from interface:ActorSystemProvider
Register a listener for ActorSystem lifecycle events.- Specified by:
registerActorSystemProviderListener
in interfaceActorSystemProvider
- Parameters:
listener
- the ActorSystemProviderListener to register- Returns:
- a ListenerRegistration instance to be used to unregister
-
asyncClose
public scala.concurrent.Future<akka.actor.Terminated> asyncClose()
-
close
public void close(scala.concurrent.duration.FiniteDuration wait) throws TimeoutException, InterruptedException
- Throws:
TimeoutException
InterruptedException
-
close
public void close() throws TimeoutException, InterruptedException
- Specified by:
close
in interfaceAutoCloseable
- Throws:
TimeoutException
InterruptedException
-
-