public class DefaultDestination extends Object implements MessageDestination
Constructor and Description |
---|
DefaultDestination(VirtualHostImpl virtualHost) |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
<M extends ServerMessage<? extends StorableMessageMetaData>> |
send(M message,
String routingAddress,
InstanceProperties instanceProperties,
ServerTransaction txn,
Action<? super MessageInstance> postEnqueueAction)
Routes a message
|
public DefaultDestination(VirtualHostImpl virtualHost)
public String getName()
getName
in interface MessageDestination
getName
in interface MessageNode
public final <M extends ServerMessage<? extends StorableMessageMetaData>> int send(M message, String routingAddress, InstanceProperties instanceProperties, ServerTransaction txn, Action<? super MessageInstance> postEnqueueAction)
MessageDestination
send
in interface MessageDestination
message
- the message to be routedinstanceProperties
- the instance propertiestxn
- the transaction to enqueue withinpostEnqueueAction
- action to perform on the result of every enqueue (may be null)Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.