clean up Channel API (fixes #1070)
- remove feature query methods - encode information in marker traits - remove safe_! - rename tellSafe to tryTell (harmonize with ActorRef.reply)
This commit is contained in:
parent
04729bcbc3
commit
a43418a4c3
5 changed files with 62 additions and 87 deletions
|
|
@ -240,7 +240,7 @@ which you do by Channel.tell(msg)
|
|||
String msg = (String)message;
|
||||
if (msg.equals("Hello")) {
|
||||
// Reply to original sender of message using the channel
|
||||
getContext().channel().tellSafe(msg + " from " + getContext().getUuid());
|
||||
getContext().channel().tryTell(msg + " from " + getContext().getUuid());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue