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, Props quarantinedMonitorActorProps, com.typesafe.config.Config akkaConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description scala.concurrent.Future<Terminated>asyncClose()voidclose()voidclose(scala.concurrent.duration.FiniteDuration wait)ActorSystemgetActorSystem()Returns the ActorSystem.ListenerRegistration<ActorSystemProviderListener>registerActorSystemProviderListener(ActorSystemProviderListener listener)Register a listener for ActorSystem lifecycle events.
-
-
-
Constructor Detail
-
ActorSystemProviderImpl
public ActorSystemProviderImpl(ClassLoader classLoader, Props quarantinedMonitorActorProps, com.typesafe.config.Config akkaConfig)
-
-
Method Detail
-
getActorSystem
public ActorSystem getActorSystem()
Description copied from interface:ActorSystemProviderReturns the ActorSystem.- Specified by:
getActorSystemin interfaceActorSystemProvider- Returns:
- the ActorSystem.
-
registerActorSystemProviderListener
public ListenerRegistration<ActorSystemProviderListener> registerActorSystemProviderListener(ActorSystemProviderListener listener)
Description copied from interface:ActorSystemProviderRegister a listener for ActorSystem lifecycle events.- Specified by:
registerActorSystemProviderListenerin interfaceActorSystemProvider- Parameters:
listener- the ActorSystemProviderListener to register- Returns:
- a ListenerRegistration instance to be used to unregister
-
asyncClose
public scala.concurrent.Future<Terminated> asyncClose()
-
close
public void close(scala.concurrent.duration.FiniteDuration wait) throws TimeoutException, InterruptedException- Throws:
TimeoutExceptionInterruptedException
-
close
public void close() throws TimeoutException, InterruptedException- Specified by:
closein interfaceAutoCloseable- Throws:
TimeoutExceptionInterruptedException
-
-