Class ActorSystemProviderImpl
java.lang.Object
org.opendaylight.controller.cluster.akka.impl.ActorSystemProviderImpl
- All Implemented Interfaces:
AutoCloseable
,ActorSystemProvider
-
Constructor Summary
ConstructorsConstructorDescriptionActorSystemProviderImpl
(ClassLoader classLoader, Props quarantinedMonitorActorProps, com.typesafe.config.Config akkaConfig) -
Method Summary
Modifier and TypeMethodDescriptionscala.concurrent.Future<Terminated>
void
close()
void
close
(scala.concurrent.duration.FiniteDuration wait) Returns the ActorSystem.Register a listener for ActorSystem lifecycle events.
-
Constructor Details
-
ActorSystemProviderImpl
public ActorSystemProviderImpl(ClassLoader classLoader, Props quarantinedMonitorActorProps, com.typesafe.config.Config akkaConfig)
-
-
Method Details
-
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
-
close
public void close(scala.concurrent.duration.FiniteDuration wait) throws TimeoutException, InterruptedException - Throws:
TimeoutException
InterruptedException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
TimeoutException
InterruptedException
-