public interface Service
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ASYNC
Used to indicate an asynchronous preferred interaction style
|
static java.lang.String |
COPYRIGHT |
static int |
NOWAIT
Used to specify a timeout on the invokeResponse() method.
|
static java.lang.String |
SYNC
Used to indicate a synchronous preferred interaction style
|
static int |
WAIT
Used to specify a timeout on the invokeResponse() method.
|
Modifier and Type | Method and Description |
---|---|
EndpointReference |
getEndpointReference()
Returns an endpoint reference representing the endpoint of the target service.
|
java.lang.String |
getPreferredInteractionStyle(OperationType operationType)
Returns the preferred interaction style for the specified operation.
|
Reference |
getReference()
Returns the SCDL reference object representing the reference to the target service.
|
java.lang.Object |
invoke(OperationType operationType,
java.lang.Object input)
Synchronously invokes a business operation on the target service.
|
java.lang.Object |
invoke(java.lang.String operationName,
java.lang.Object input)
Synchronously invokes a business operation on the target service.
|
Ticket |
invokeAsync(OperationType operationType,
java.lang.Object input)
Sends an asynchronous request to a business operation on the target service.
|
Ticket |
invokeAsync(java.lang.String operationName,
java.lang.Object input)
Sends an asynchronous request to a business operation on the target service.
|
Ticket |
invokeAsyncWithCallback(OperationType operationType,
java.lang.Object input)
Sends an asynchronous request to a business operation on the target service.
|
Ticket |
invokeAsyncWithCallback(java.lang.String operationName,
java.lang.Object input)
Sends an asynchronous request to a business operation on the target service.
|
java.lang.Object |
invokeResponse(Ticket ticket,
long timeout)
Retrieves the response to an asynchronous request.
|
static final java.lang.String COPYRIGHT
static final int WAIT
static final int NOWAIT
static final java.lang.String SYNC
static final java.lang.String ASYNC
java.lang.Object invoke(java.lang.String operationName, java.lang.Object input) throws ServiceBusinessException
operationName
- The name of the operation.input
- The input business data.ServiceBusinessException
- Business exception thrown by the target business operation.java.lang.Object invoke(OperationType operationType, java.lang.Object input) throws ServiceBusinessException
operationType
- The OperationType representing the target operation.input
- The input business data.ServiceBusinessException
- Business exception thrown by the target business operation.Ticket invokeAsync(java.lang.String operationName, java.lang.Object input)
operationName
- The name of the operation.input
- The input business data.Ticket invokeAsync(OperationType operationType, java.lang.Object input)
operationType
- The OperationType representing the target operation.input
- The input business data.Ticket invokeAsyncWithCallback(java.lang.String operationName, java.lang.Object input)
operationName
- The name of the operation.input
- The input business data.Ticket invokeAsyncWithCallback(OperationType operationType, java.lang.Object input)
operationType
- The OperationType representing the target operation.input
- The input business data.java.lang.Object invokeResponse(Ticket ticket, long timeout) throws ServiceBusinessException
ticket
- The ticket identifying the asynchronous interaction, returned from a previous call to the invokeAsync() method.timeout
- The time to wait for the response in milliseconds.ServiceBusinessException
- Business exception thrown by the target business operation.java.lang.String getPreferredInteractionStyle(OperationType operationType)
operationType
- The OperationType representing the target operation.Reference getReference()
EndpointReference getEndpointReference()