org.activemq.advisories
Class TempDestinationAdvisoryEvent

java.lang.Object
  extended by org.activemq.message.AbstractPacket
      extended by org.activemq.advisories.TempDestinationAdvisoryEvent
All Implemented Interfaces:
Externalizable, Serializable, Packet

public class TempDestinationAdvisoryEvent
extends AbstractPacket
implements Externalizable

This event is raised when a MessageTempDestination starts/stops *

Version:
$Revision: 1.1.1.1 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.activemq.message.AbstractPacket
bitArray, BROKERS_VISITED_INDEX, cachedHashCode, RECEIPT_REQUIRED_INDEX
 
Fields inherited from interface org.activemq.message.Packet
ACTIVEMQ_BROKER_INFO, ACTIVEMQ_BYTES_MESSAGE, ACTIVEMQ_CONNECTION_INFO, ACTIVEMQ_MAP_MESSAGE, ACTIVEMQ_MESSAGE, ACTIVEMQ_MSG_ACK, ACTIVEMQ_OBJECT_MESSAGE, ACTIVEMQ_STREAM_MESSAGE, ACTIVEMQ_TEXT_MESSAGE, BROKER_ADMIN_COMMAND, CACHED_VALUE_COMMAND, CAPACITY_INFO, CAPACITY_INFO_REQUEST, CLEANUP_CONNECTION_INFO, CONSUMER_INFO, DURABLE_UNSUBSCRIBE, INT_RESPONSE_RECEIPT_INFO, KEEP_ALIVE, NOT_SET, PRODUCER_INFO, RECEIPT_INFO, RESPONSE_RECEIPT_INFO, SESSION_INFO, TRANSACTION_INFO, WIRE_FORMAT_INFO, XA_TRANSACTION_INFO
 
Constructor Summary
TempDestinationAdvisoryEvent()
          Empty constructor
TempDestinationAdvisoryEvent(ActiveMQDestination dest, boolean started)
          Default Constructor
 
Method Summary
 boolean equals(Object obj)
          Tests equality with another instance
 ActiveMQDestination getDestination()
           
 int getPacketType()
          Return the type of Packet
 int hashCode()
           
 boolean isStarted()
           
 void readExternal(ObjectInput in)
          read from a stream
 void setDestination(ActiveMQDestination destination)
           
 void setStarted(boolean started)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
          write to a stream
 
Methods inherited from class org.activemq.message.AbstractPacket
addBrokerVisited, clearBrokersVisited, decrementMemoryReferenceCount, equals, getBitArray, getBrokersVisited, getBrokersVisitedAsString, getId, getMemoryUsage, getMemoryUsageReferenceCount, getPacketTypeAsString, hasVisited, incrementMemoryReferenceCount, initializeOther, isJMSMessage, isReceipt, isReceiptRequired, setBitArray, setBrokersVisitedAsString, setId, setMemoryUsage, setReceiptRequired
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TempDestinationAdvisoryEvent

public TempDestinationAdvisoryEvent()
Empty constructor


TempDestinationAdvisoryEvent

public TempDestinationAdvisoryEvent(ActiveMQDestination dest,
                                    boolean started)
Default Constructor

Parameters:
dest -
started -
Method Detail

getDestination

public ActiveMQDestination getDestination()
Returns:
Returns the destination.

setDestination

public void setDestination(ActiveMQDestination destination)
Parameters:
destination - The destination to set.

isStarted

public boolean isStarted()
Returns:
Returns the started.

setStarted

public void setStarted(boolean started)
Parameters:
started - The started to set.

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
write to a stream

Specified by:
writeExternal in interface Externalizable
Parameters:
out -
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
read from a stream

Specified by:
readExternal in interface Externalizable
Parameters:
in -
Throws:
IOException
ClassNotFoundException

equals

public boolean equals(Object obj)
Description copied from class: AbstractPacket
Tests equality with another instance

Overrides:
equals in class AbstractPacket
Parameters:
obj -
Returns:
true if obj is equal

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractPacket
Returns:
hash code

getPacketType

public int getPacketType()
Description copied from interface: Packet
Return the type of Packet

Specified by:
getPacketType in interface Packet
Returns:
Packet type - for this case -1

toString

public String toString()
Overrides:
toString in class AbstractPacket
Returns:
pretty print of 'this'


Copyright © 2004-2009 Protique, Ltd.. All Rights Reserved.