| Constructor and Description |
|---|
ReplyHandler(Callback<Reply> replyCallback,
Reply reply)
Creates a new ReplyHandler.
|
ReplyHandler(Callback<Reply> replyCallback,
Throwable exception)
Creates a new ReplyHandler.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
raiseError(Throwable exception,
Callback<Reply> replyCallback,
Executor executor)
Raise an error on the callback, if any.
|
static void |
reply(Reply reply,
Callback<Reply> replyCallback,
Executor executor)
Updates to set the reply for the callback, if any.
|
void |
run() |
public ReplyHandler(Callback<Reply> replyCallback, Reply reply)
replyCallback - The callback for the message.reply - The reply.public static void raiseError(Throwable exception, Callback<Reply> replyCallback, Executor executor)
exception - The thrown exception.replyCallback - The callback for the reply to the message.executor - The executor to use for the back-grounding the reply handling.public static void reply(Reply reply, Callback<Reply> replyCallback, Executor executor)
reply - The reply.replyCallback - The callback for the reply to the message.executor - The executor to use for the back-grounding the reply handling.Copyright © 2011-2013 Allanbank Consulting, Inc.. All Rights Reserved.