webMethods Broker API for JMS
Version 9.5.1.0.171 091713

com.webmethods.jms.marshal
Class WmBrokerEventWrapper

java.lang.Object
  extended by com.webmethods.jms.marshal.WmBrokerEventWrapper

public abstract class WmBrokerEventWrapper
extends java.lang.Object

A wrapper around a BrokerEvent used by the outbound marshalling method.
It allows the destination to be set for events that are to be delivered to a specific Broker client.

See Also:
WmMarshalOut

Constructor Summary
WmBrokerEventWrapper()
           
 
Method Summary
static WmBrokerEventWrapper create(java.lang.Object brokerEvent)
          Create a wrapper for a BrokerEvent
abstract  java.lang.String getDestinationId()
          Get the current destination for the event.
abstract  void setDestinationId(java.lang.String destId)
          Set the destination for delivery of the wrapped event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WmBrokerEventWrapper

public WmBrokerEventWrapper()
Method Detail

create

public static WmBrokerEventWrapper create(java.lang.Object brokerEvent)
                                   throws java.lang.Exception
Create a wrapper for a BrokerEvent

Parameters:
brokerEvent - the event that is to be wrapped
Returns:
the wrapped BrokerEvent
Throws:
java.lang.Exception - if Broker Java API classes are not found

setDestinationId

public abstract void setDestinationId(java.lang.String destId)
Set the destination for delivery of the wrapped event. If the event is to be published rather than delivered, this method should not be called.

Parameters:
destId - name of the Broker client to deliver the event to

getDestinationId

public abstract java.lang.String getDestinationId()
Get the current destination for the event.

Returns:
the name of the Broker client the event will be delivered to, if it has been set.

webMethods Broker API for JMS
Version 9.5.1.0.171 091713


Copyright © 2001 - 2013 Software AG Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, United States of America, and/or their suppliers.