public abstract class Actor extends Object implements Deliverer, MessageHandler
Constructor and Description |
---|
Actor(Connection connection)
Construct a new Actor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this Actor's connection.
|
static JSONLiteral |
msgAuth(Referenceable target,
AuthDesc auth,
String label)
Create an 'auth' message.
|
static JSONLiteral |
msgAuth(String target,
AuthDesc auth,
String label)
Create an 'auth' message.
|
void |
send(JSONLiteral message)
Send a message over this Actor's connection to the entity at the other
end.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
connectionDied, processMessage
public Actor(Connection connection)
connection
- Connection to communicate with the entity at the
other end.public void close()
public void send(JSONLiteral message)
public static JSONLiteral msgAuth(Referenceable target, AuthDesc auth, String label)
target
- Object the message is being sent to.auth
- Authentication information to use.label
- Label to identify the entity seeking authorization.public static JSONLiteral msgAuth(String target, AuthDesc auth, String label)
target
- Object the message is being sent to.auth
- Authentication information to use.label
- Label to identify the entity seeking authorization.Copyright © 2017. All rights reserved.