Interface InternalActorSystem
-
- All Superinterfaces:
ActorSystem,SerializationAccessor,ShardAccessor
public interface InternalActorSystem extends ActorSystem, ShardAccessor, SerializationAccessor
- Author:
- Joost van de Wijgerd
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ElasticActorgetActorInstance(ActorRef actorRef, Class<? extends ElasticActor> actorClass)Return the singleton instance of anElasticActorList<ActorLifecycleListener<?>>getActorLifecycleListeners(Class<? extends ElasticActor> actorClass)InternalActorSystemConfigurationgetConfiguration()InternalSchedulergetInternalScheduler()intgetMultiQueueHashSeed()ActorNodegetNode()Returns the localActorNodeActorNodegetNode(String nodeId)Returns aActorNodethat can be either remote or localInternalActorSystemsgetParent()intgetQueuesPerNode()intgetQueuesPerShard()ElasticActorgetServiceInstance(ActorRef serviceRef)Return a service or null if the service was not foundintgetShardHashSeed()booleanisStable()Returns whether or not the actor system is currently stable, i.e.default voidshutdown()ActorReftempActorFor(String actorId)Return a reference to a temporary actor-
Methods inherited from interface org.elasticsoftware.elasticactors.ActorSystem
actorFor, actorOf, actorOf, actorOf, actorOf, actorOf, getEventListenerRegistry, getName, getScheduler, groupOf, serviceActorFor, serviceActorFor, stop, tempActorOf
-
Methods inherited from interface org.elasticsoftware.elasticactors.serialization.SerializationAccessor
getDeserializer, getSerializer
-
Methods inherited from interface org.elasticsoftware.elasticactors.cluster.ShardAccessor
getNumberOfShards, getShard, getShard
-
-
-
-
Method Detail
-
getConfiguration
InternalActorSystemConfiguration getConfiguration()
- Specified by:
getConfigurationin interfaceActorSystem
-
tempActorFor
ActorRef tempActorFor(String actorId)
Return a reference to a temporary actor- Parameters:
actorId-- Returns:
-
getActorInstance
ElasticActor getActorInstance(ActorRef actorRef, Class<? extends ElasticActor> actorClass)
Return the singleton instance of anElasticActor- Parameters:
actorRef-actorClass-- Returns:
-
getServiceInstance
ElasticActor getServiceInstance(ActorRef serviceRef)
Return a service or null if the service was not found- Parameters:
serviceRef-- Returns:
-
shutdown
default void shutdown()
-
getNode
ActorNode getNode(String nodeId)
Returns aActorNodethat can be either remote or local- Parameters:
nodeId-- Returns:
-
getInternalScheduler
InternalScheduler getInternalScheduler()
-
getParent
InternalActorSystems getParent()
- Specified by:
getParentin interfaceActorSystem
-
getActorLifecycleListeners
List<ActorLifecycleListener<?>> getActorLifecycleListeners(Class<? extends ElasticActor> actorClass)
-
getQueuesPerNode
int getQueuesPerNode()
-
getQueuesPerShard
int getQueuesPerShard()
-
getShardHashSeed
int getShardHashSeed()
-
getMultiQueueHashSeed
int getMultiQueueHashSeed()
-
isStable
boolean isStable()
Returns whether or not the actor system is currently stable, i.e. if all shards have been assigned and initialized properly.- Returns:
- true when the actor system is stable, false otherwise.
-
-