public class MessageBusUtil
extends Object
Constructor and Description |
---|
MessageBusUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addDestination(Destination destination) |
static Message |
createResponseMessage(Message requestMessage) |
static Message |
createResponseMessage(Message requestMessage,
Object payload) |
static Destination |
getDestination(String destinationName) |
static MessageBusUtil |
getInstance()
Deprecated.
As of Judson (7.1.x), with no direct replacement
|
static MessageBus |
getMessageBus() |
static boolean |
hasMessageListener(String destination) |
static void |
registerMessageListener(String destinationName,
MessageListener messageListener) |
static void |
removeDestination(String destinationName) |
static void |
sendMessage(String destinationName,
Message message) |
static void |
sendMessage(String destinationName,
Object payload) |
static Object |
sendSynchronousMessage(String destinationName,
Message message) |
static Object |
sendSynchronousMessage(String destinationName,
Message message,
long timeout) |
static Object |
sendSynchronousMessage(String destinationName,
Object payload) |
static Object |
sendSynchronousMessage(String destinationName,
Object payload,
long timeout) |
static Object |
sendSynchronousMessage(String destinationName,
Object payload,
String responseDestinationName) |
static Object |
sendSynchronousMessage(String destinationName,
Object payload,
String responseDestinationName,
long timeout) |
void |
setSynchronousMessageSenderMode(SynchronousMessageSender.Mode synchronousMessageSenderMode) |
static void |
shutdown() |
static void |
shutdown(boolean force) |
static boolean |
unregisterMessageListener(String destinationName,
MessageListener messageListener) |
public static void addDestination(Destination destination)
public static Message createResponseMessage(Message requestMessage, Object payload)
public static Destination getDestination(String destinationName)
@Deprecated public static MessageBusUtil getInstance()
public static MessageBus getMessageBus()
public static boolean hasMessageListener(String destination)
public static void registerMessageListener(String destinationName, MessageListener messageListener)
public static void removeDestination(String destinationName)
public static void sendMessage(String destinationName, Message message)
public static void sendMessage(String destinationName, Object payload)
public static Object sendSynchronousMessage(String destinationName, Message message) throws MessageBusException
MessageBusException
public static Object sendSynchronousMessage(String destinationName, Message message, long timeout) throws MessageBusException
MessageBusException
public static Object sendSynchronousMessage(String destinationName, Object payload) throws MessageBusException
MessageBusException
public static Object sendSynchronousMessage(String destinationName, Object payload, long timeout) throws MessageBusException
MessageBusException
public static Object sendSynchronousMessage(String destinationName, Object payload, String responseDestinationName) throws MessageBusException
MessageBusException
public static Object sendSynchronousMessage(String destinationName, Object payload, String responseDestinationName, long timeout) throws MessageBusException
MessageBusException
public static void shutdown()
public static void shutdown(boolean force)
public static boolean unregisterMessageListener(String destinationName, MessageListener messageListener)
public void setSynchronousMessageSenderMode(SynchronousMessageSender.Mode synchronousMessageSenderMode)