protected static class Send.SendRunnable extends Object implements Runnable, CompletionListener<String>
Modifier | Constructor and Description |
---|---|
protected |
Send.SendRunnable(NonBlockingClient client,
Map<String,Object> args,
String[] messages) |
Modifier and Type | Method and Description |
---|---|
void |
onError(NonBlockingClient client,
String context,
Exception exception)
Called to indicate that the operation failed.
|
void |
onSuccess(NonBlockingClient client,
String context)
Called to indicate that the operation completed successfully.
|
void |
run() |
protected Send.SendRunnable(NonBlockingClient client, Map<String,Object> args, String[] messages)
public void onSuccess(NonBlockingClient client, String context)
CompletionListener
onSuccess
in interface CompletionListener<String>
client
- the client that the listener was registered against.context
- an object that was supplied at the point the listener was
registered. This allows an application to correlate the
invocation of a listener with the point at which the listener
was registered.public void onError(NonBlockingClient client, String context, Exception exception)
CompletionListener
onError
in interface CompletionListener<String>
client
- the client that the listener was registered against.context
- an object that was supplied at the point the listener was
registered. This allows an application to correlate the
invocation of a listener with the point at which the listener
was registered.exception
- an exception that indicates why the operation failed.Copyright © 2015 International Business Machines Corporation. All rights reserved.