|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object akka.contrib.pattern.ClusterReceptionistExtension
public class ClusterReceptionistExtension
Constructor Summary | |
---|---|
ClusterReceptionistExtension(ExtendedActorSystem system)
|
Method Summary | |
---|---|
static ClusterReceptionistExtension |
createExtension(ExtendedActorSystem system)
|
static ClusterReceptionistExtension |
get(ActorSystem system)
|
boolean |
isTerminated()
Returns true if this member is not tagged with the role configured for the receptionist. |
static ClusterReceptionistExtension$ |
lookup()
|
void |
registerService(ActorRef actor)
Register an actor that should be reachable for the clients. |
void |
registerSubscriber(java.lang.String topic,
ActorRef actor)
Register an actor that should be reachable for the clients to a named topic. |
void |
unregisterService(ActorRef actor)
A registered actor will be automatically unregistered when terminated, but it can also be explicitly unregistered before termination. |
void |
unregisterSubscriber(java.lang.String topic,
ActorRef actor)
A registered subscriber will be automatically unregistered when terminated, but it can also be explicitly unregistered before termination. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClusterReceptionistExtension(ExtendedActorSystem system)
Method Detail |
---|
public static ClusterReceptionistExtension get(ActorSystem system)
public static ClusterReceptionistExtension$ lookup()
public static ClusterReceptionistExtension createExtension(ExtendedActorSystem system)
public boolean isTerminated()
public void registerService(ActorRef actor)
Send
or SendToAll
using
the path elements of the ActorRef
, e.g. "/user/myservice"
.
actor
- (undocumented)public void unregisterService(ActorRef actor)
actor
- (undocumented)public void registerSubscriber(java.lang.String topic, ActorRef actor)
Publish
.
topic
- (undocumented)actor
- (undocumented)public void unregisterSubscriber(java.lang.String topic, ActorRef actor)
topic
- (undocumented)actor
- (undocumented)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |