Celtix User APIs

org.objectweb.celtix.bindings
Interface ClientBinding

All Superinterfaces:
BindingBase
All Known Implementing Classes:
AbstractClientBinding

public interface ClientBinding
extends BindingBase

Provides methods for invoking operations on an endpoint.


Method Summary
 ObjectMessageContext invoke(ObjectMessageContext context, DataBindingCallback callback)
          Makes a synchronous request and returns the context containing the response.
 Future<ObjectMessageContext> invokeAsync(ObjectMessageContext context, DataBindingCallback callback, Executor executor)
          Makes an asynchronous request using the contents of the ObjectMessageContext.
 void invokeOneWay(ObjectMessageContext context, DataBindingCallback callback)
          Makes a one way request using the contents of the ObjectMessageContext.
 
Methods inherited from interface org.objectweb.celtix.bindings.BindingBase
createHandlerInvoker, createObjectContext, getBinding, isCompatibleWithAddress
 

Method Detail

invokeOneWay

void invokeOneWay(ObjectMessageContext context,
                  DataBindingCallback callback)
                  throws IOException
Makes a one way request using the contents of the ObjectMessageContext.

Parameters:
context - Holds the method and parameters for the request.
callback - Callback object to handle the IO of the objects in the context
Throws:
IOException

invoke

ObjectMessageContext invoke(ObjectMessageContext context,
                            DataBindingCallback callback)
                            throws IOException
Makes a synchronous request and returns the context containing the response.

Parameters:
context - Holds the method and parameters for the request.
callback - Callback object to handle the IO of the objects in the context
Returns:
ObjectMessageContext containing the request response.
Throws:
IOException

invokeAsync

Future<ObjectMessageContext> invokeAsync(ObjectMessageContext context,
                                         DataBindingCallback callback,
                                         Executor executor)
                                         throws IOException
Makes an asynchronous request using the contents of the ObjectMessageContext.

Parameters:
context - Holds the method and parameters for the request.
callback - Callback object to handle the IO of the objects in the context
Returns:
Future for accessing the result of the request.
Throws:
IOException

Celtix User APIs