|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.soa.esb.listeners.message.Invoker
public class Invoker
Utility class to hide implementation details for sending Command messages and optionally awaiting for a response.
Constructor Summary | |
---|---|
Invoker()
|
Method Summary | |
---|---|
static void |
invoke(AbstractCommandVehicle command,
java.lang.String category,
java.lang.String name)
Encapsulate command in an ESB Message, and deliver. |
static Message |
invokeAndAwaitResponse(AbstractCommandVehicle command,
java.lang.String category,
java.lang.String name,
int maxWaitMillis)
Encapsulate command in an ESB Message, deliver it, and wait for a response Message. |
static Message |
invokeAndAwaitResponse(Message outgoing,
int maxWaitMillis)
Deliver an ESB Message and wait for a response Message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Invoker()
Method Detail |
---|
public static void invoke(AbstractCommandVehicle command, java.lang.String category, java.lang.String name) throws RegistryException, MalformedEPRException, CourierException
command
- AbstractCommandMessage - Transform into an ESB Message, and sendcategory
- String - Service category name for Registry inquiryname
- String - Service name for Registry inquiry
RegistryException
MalformedEPRException
CourierException
public static Message invokeAndAwaitResponse(AbstractCommandVehicle command, java.lang.String category, java.lang.String name, int maxWaitMillis) throws RegistryException, MalformedEPRException, CourierException, CourierTimeoutException
command
- AbstractCommandMessage - Transform into an ESB Message, and sendcategory
- String - Service category name for Registry inquiryname
- String - Service name for Registry inquirymaxWaitMillis
- int - Maximum time to wait for a response
RegistryException
MalformedEPRException
CourierException
CourierTimeoutException
- - If response was not received in specified timepublic static Message invokeAndAwaitResponse(Message outgoing, int maxWaitMillis) throws CourierException, MalformedEPRException, CourierTimeoutException
outgoing
- Message - should contain at least the toEPRmaxWaitMillis
- int - Maximum time to wait for a response
CourierException
MalformedEPRException
CourierTimeoutException
- - If response was not received in specified time
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |