Class RemoteActorSystemInstance
java.lang.Object
org.elasticsoftware.elasticactors.client.cluster.RemoteActorSystemInstance
- All Implemented Interfaces:
org.elasticsoftware.elasticactors.ActorSystem,org.elasticsoftware.elasticactors.cluster.ShardAccessor,SerializationAccessor
public final class RemoteActorSystemInstance
extends Object
implements org.elasticsoftware.elasticactors.ActorSystem, org.elasticsoftware.elasticactors.cluster.ShardAccessor, SerializationAccessor
-
Method Summary
Modifier and TypeMethodDescriptionorg.elasticsoftware.elasticactors.ActorRef<T> org.elasticsoftware.elasticactors.ActorRef<T> org.elasticsoftware.elasticactors.ActorRefactorOf(String actorId, Class<T> actorClass, org.elasticsoftware.elasticactors.ActorState initialState) org.elasticsoftware.elasticactors.ActorReforg.elasticsoftware.elasticactors.ActorRefactorOf(String actorId, String actorClassName, org.elasticsoftware.elasticactors.ActorState initialState) org.elasticsoftware.elasticactors.ActorRefactorOf(String actorId, String actorClassName, org.elasticsoftware.elasticactors.ActorState initialState, org.elasticsoftware.elasticactors.ActorRef creatorRef) A specialization ofActorSystem.actorOf(String, String, ActorState, ActorRef)for a RemoteActorSystem.voiddestroy()org.elasticsoftware.elasticactors.ActorSystemConfiguration<T> MessageDeserializer<T>getDeserializer(Class<T> messageClass) org.elasticsoftware.elasticactors.cluster.ActorSystemEventListenerRegistrygetName()intorg.elasticsoftware.elasticactors.ActorSystemsorg.elasticsoftware.elasticactors.scheduler.Scheduler<T> MessageSerializer<T>getSerializer(Class<T> messageClass) org.elasticsoftware.elasticactors.ActorShardgetShard(int shardId) org.elasticsoftware.elasticactors.ActorShardorg.elasticsoftware.elasticactors.ActorRefGroupgroupOf(Collection<org.elasticsoftware.elasticactors.ActorRef> members) voidinit()org.elasticsoftware.elasticactors.ActorRefserviceActorFor(String actorId) org.elasticsoftware.elasticactors.ActorRefserviceActorFor(String nodeId, String actorId) voidstop(org.elasticsoftware.elasticactors.ActorRef actorRef) <T> org.elasticsoftware.elasticactors.ActorReftempActorOf(Class<T> actorClass, org.elasticsoftware.elasticactors.ActorState initialState)
-
Method Details
-
getName
- Specified by:
getNamein interfaceorg.elasticsoftware.elasticactors.ActorSystem
-
actorOf
public <T> org.elasticsoftware.elasticactors.ActorRef actorOf(String actorId, Class<T> actorClass) throws Exception - Specified by:
actorOfin interfaceorg.elasticsoftware.elasticactors.ActorSystem- Throws:
Exception
-
actorOf
public org.elasticsoftware.elasticactors.ActorRef actorOf(String actorId, String actorClassName) throws Exception - Specified by:
actorOfin interfaceorg.elasticsoftware.elasticactors.ActorSystem- Throws:
Exception
-
actorOf
public <T> org.elasticsoftware.elasticactors.ActorRef actorOf(String actorId, Class<T> actorClass, org.elasticsoftware.elasticactors.ActorState initialState) throws Exception - Specified by:
actorOfin interfaceorg.elasticsoftware.elasticactors.ActorSystem- Throws:
Exception
-
actorOf
public org.elasticsoftware.elasticactors.ActorRef actorOf(String actorId, String actorClassName, org.elasticsoftware.elasticactors.ActorState initialState) throws Exception - Specified by:
actorOfin interfaceorg.elasticsoftware.elasticactors.ActorSystem- Throws:
Exception
-
actorOf
public org.elasticsoftware.elasticactors.ActorRef actorOf(String actorId, String actorClassName, org.elasticsoftware.elasticactors.ActorState initialState, org.elasticsoftware.elasticactors.ActorRef creatorRef) throws Exception A specialization ofActorSystem.actorOf(String, String, ActorState, ActorRef)for a RemoteActorSystem.
The creatorRef is always ignored.- Specified by:
actorOfin interfaceorg.elasticsoftware.elasticactors.ActorSystem- Throws:
Exception
-
tempActorOf
public <T> org.elasticsoftware.elasticactors.ActorRef tempActorOf(Class<T> actorClass, @Nullable org.elasticsoftware.elasticactors.ActorState initialState) throws Exception - Specified by:
tempActorOfin interfaceorg.elasticsoftware.elasticactors.ActorSystem- Throws:
Exception
-
actorFor
- Specified by:
actorForin interfaceorg.elasticsoftware.elasticactors.ActorSystem
-
serviceActorFor
- Specified by:
serviceActorForin interfaceorg.elasticsoftware.elasticactors.ActorSystem
-
serviceActorFor
- Specified by:
serviceActorForin interfaceorg.elasticsoftware.elasticactors.ActorSystem
-
getScheduler
public org.elasticsoftware.elasticactors.scheduler.Scheduler getScheduler()- Specified by:
getSchedulerin interfaceorg.elasticsoftware.elasticactors.ActorSystem
-
getParent
public org.elasticsoftware.elasticactors.ActorSystems getParent()- Specified by:
getParentin interfaceorg.elasticsoftware.elasticactors.ActorSystem
-
stop
- Specified by:
stopin interfaceorg.elasticsoftware.elasticactors.ActorSystem- Throws:
Exception
-
getConfiguration
public org.elasticsoftware.elasticactors.ActorSystemConfiguration getConfiguration()- Specified by:
getConfigurationin interfaceorg.elasticsoftware.elasticactors.ActorSystem
-
getEventListenerRegistry
public org.elasticsoftware.elasticactors.cluster.ActorSystemEventListenerRegistry getEventListenerRegistry()- Specified by:
getEventListenerRegistryin interfaceorg.elasticsoftware.elasticactors.ActorSystem
-
groupOf
public org.elasticsoftware.elasticactors.ActorRefGroup groupOf(Collection<org.elasticsoftware.elasticactors.ActorRef> members) throws IllegalArgumentException - Specified by:
groupOfin interfaceorg.elasticsoftware.elasticactors.ActorSystem- Throws:
IllegalArgumentException
-
init
- Throws:
Exception
-
destroy
@PreDestroy public void destroy() -
getShard
- Specified by:
getShardin interfaceorg.elasticsoftware.elasticactors.cluster.ShardAccessor
-
getShard
public org.elasticsoftware.elasticactors.ActorShard getShard(int shardId) - Specified by:
getShardin interfaceorg.elasticsoftware.elasticactors.cluster.ShardAccessor
-
getNumberOfShards
public int getNumberOfShards()- Specified by:
getNumberOfShardsin interfaceorg.elasticsoftware.elasticactors.cluster.ShardAccessor
-
getSerializer
- Specified by:
getSerializerin interfaceSerializationAccessor
-
getDeserializer
- Specified by:
getDeserializerin interfaceSerializationAccessor
-