public class SimpleBamManager extends java.lang.Object implements BamManager
Constructor and Description |
---|
SimpleBamManager(Broker broker) |
SimpleBamManager(ManagedBroker broker) |
Modifier and Type | Method and Description |
---|---|
void |
addActor(java.lang.String address,
ManagedActor actor)
Adds an actor and creates a default mailbox
|
void |
addActorBean(java.lang.String address,
java.lang.Object bean)
Creates a skeleton actor.
|
void |
addMailbox(java.lang.String address,
Mailbox mailbox)
Adds a mailbox.
|
BamActorRef |
createActorRef(java.lang.String to) |
Agent |
createAgent(MessageStream actorStream)
Creates an agent
|
Agent |
createAgent(MessageStream actorStream,
MailboxType mailboxType)
Creates an agent
|
Mailbox |
createClient(Mailbox next,
java.lang.String uid,
java.lang.String resource) |
ActorSender |
createClient(java.lang.String address) |
ActorSender |
createClient(java.lang.String uid,
java.lang.String resource) |
protected Mailbox |
createMailbox(MessageStream actorStream,
MailboxType mailboxType) |
protected Mailbox |
createMailbox(java.lang.String address,
MessageStream actorStream,
MailboxType mailboxType) |
<T> T |
createProxy(java.lang.Class<T> api,
BamActorRef to,
ActorSender sender) |
<T> T |
createProxy(java.lang.Class<T> api,
java.lang.String to) |
<T> T |
createProxy(java.lang.Class<T> api,
java.lang.String to,
ActorSender sender) |
Mailbox |
createService(java.lang.String address,
java.lang.Object bean)
Creates a skeleton actor.
|
ManagedBroker |
getBroker()
Returns the managed broker
|
long |
getTimeout() |
void |
removeMailbox(Mailbox mailbox)
Removes a mailbox.
|
java.lang.String |
toString() |
public SimpleBamManager(Broker broker)
public SimpleBamManager(ManagedBroker broker)
public ManagedBroker getBroker()
BamManager
getBroker
in interface BamManager
public long getTimeout()
public void addMailbox(java.lang.String address, Mailbox mailbox)
addMailbox
in interface BamManager
public void removeMailbox(Mailbox mailbox)
removeMailbox
in interface BamManager
public void addActor(java.lang.String address, ManagedActor actor)
BamManager
addActor
in interface BamManager
public void addActorBean(java.lang.String address, java.lang.Object bean)
public Mailbox createService(java.lang.String address, java.lang.Object bean)
createService
in interface BamManager
public Agent createAgent(MessageStream actorStream)
createAgent
in interface BamManager
public Agent createAgent(MessageStream actorStream, MailboxType mailboxType)
createAgent
in interface BamManager
protected Mailbox createMailbox(MessageStream actorStream, MailboxType mailboxType)
protected Mailbox createMailbox(java.lang.String address, MessageStream actorStream, MailboxType mailboxType)
public Mailbox createClient(Mailbox next, java.lang.String uid, java.lang.String resource)
createClient
in interface BamManager
public ActorSender createClient(java.lang.String uid, java.lang.String resource)
createClient
in interface BamManager
public BamActorRef createActorRef(java.lang.String to)
createActorRef
in interface BamManager
public <T> T createProxy(java.lang.Class<T> api, java.lang.String to)
createProxy
in interface BamManager
public <T> T createProxy(java.lang.Class<T> api, BamActorRef to, ActorSender sender)
createProxy
in interface BamManager
public <T> T createProxy(java.lang.Class<T> api, java.lang.String to, ActorSender sender)
createProxy
in interface BamManager
public ActorSender createClient(java.lang.String address)
public java.lang.String toString()
toString
in class java.lang.Object