juglr
Class Address
java.lang.Object
juglr.Address
public abstract class Address
- extends java.lang.Object
Encapsulation of an address on the message bus. Each Actor
is
assigned a unique address on the message bus upon construction.
Following that, actors may request named addresses on the bus.
Named addresses can be used to contact actors under well known names,
much like host names are used on the internet.
Addresses are obtained by calling
MessageBus.allocateNamedAddress(Actor, String)
and freed again by
calling MessageBus.freeAddress(Address)
.
- See Also:
Actor
,
MessageBus
Method Summary |
abstract java.lang.String |
externalize()
Return a string formatted version of the address, suitable for wire
protocols |
abstract MessageBus |
getBus()
Get the message bus on which this address is valid |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Address
public Address()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getBus
public abstract MessageBus getBus()
- Get the message bus on which this address is valid
- Returns:
externalize
public abstract java.lang.String externalize()
- Return a string formatted version of the address, suitable for wire
protocols
- Returns:
- and external representation of the address