public interface MessageDispatchTargetHandle extends Handle, MessageSupport
Subscription
. Applications that need this interface must instantiate an
object with the MessageDispatchTargetHandle interface by calling
Solclient.Allocator.newMessageDispatchTargetHandle()
.
The allocated MessageDispatchTargetHandle is used to create a subscription entry in the API
by calling SessionHandle.subscribe()
or
FlowHandle.subscribe()
Modifier and Type | Method and Description |
---|---|
void |
destroy()
This method will destroy the the message dispatch associated
with this instance.
|
MessageCallback |
getMessageCallback() |
Subscription |
getSubscription() |
boolean |
isLocalDispatchOnly()
The Local Dispatch Only attribute can be set on
MessageDispatchTargetHandle when the object
is created. |
getRxMessage, takeRxMessage
Subscription getSubscription()
Subscription
) set in the MessageDispatchTargetHandle
object with
Solclient.Allocator.newMessageDispatchTargetHandle()
MessageCallback getMessageCallback()
MessageCallback
set in the MessageDispatchTargetHandle
object with
Solclient.Allocator.newMessageDispatchTargetHandle()
boolean isLocalDispatchOnly()
MessageDispatchTargetHandle
when the object
is created. By setting this attribute, the Subscription
is not sent to the appliance and exists
only in the local API dispatch table. This can serve to reduce the resource use on the appliance
in the network of appliances.
For this to have any affect at all, an encompassing Subscription
must be set on the appliance.
For example, an application could send the subscription /foo/>
to the appliance and this
subscription will be propogated through the network. Then the application could add
'Local Dispatch Only' subscriptions for /foo/1
, /foo/2
, and /foo/3
. Messages on
all these topics would be delivered to the application due to the wild card subscription. They would then
be dispatched to the individual MessageDispatchTargetHandle
by the Local Dispatch Only entries.
Solclient.Allocator.newMessageDispatchTargetHandle()
void destroy() throws SolclientException
destroy
in interface Handle
SolclientException
- if the destroy failsCopyright 2004-2024 Solace Corporation. All rights reserved.