public interface CallbackService
NonBlockingClient.create(com.ibm.mqlight.api.endpoint.EndpointService, com.ibm.mqlight.api.callback.CallbackService, com.ibm.mqlight.api.network.NetworkService, com.ibm.mqlight.api.timer.TimerService, com.google.gson.GsonBuilder, com.ibm.mqlight.api.ClientOptions, com.ibm.mqlight.api.NonBlockingClientListener, Object)
method.void run(Runnable runnable, Object orderingCtx, Promise<Void> promise)
runnable
- the Runnable
to run.orderingCtx
- an object that is used to order the execution of runnables.
The implementor of this interface must ensure that if two
calls specify the same orderingCtx
object they
are executed in the order the calls are made. Two calls that
specify different values for the orderingCtx
parameter can have their runnables executed in any order.promise
- a promise which is to be completed when the runnable has finished
executing.Copyright © 2015 International Business Machines Corporation. All rights reserved.