org.jboss.messaging.core
Interface Message

All Superinterfaces:
Routable, java.io.Serializable
All Known Implementing Classes:
MessageSupport

public interface Message
extends Routable

A message is a routable instance that has a payload. The payload is opaque to the messaging system. When implementing this interface, make sure you override equals() and hashCode() such that two Message instances with equals IDs are equal.

Version:
$Revision: 805 $ $Id: Message.java 805 2006-03-28 22:12:26Z ovidiu $
Author:
Ovidiu Feodorov, Tim Fox

Field Summary
 
Fields inherited from interface org.jboss.messaging.core.Routable
COLLECTOR_ID, REMOTE_ROUTABLE, REPLICATOR_ID
 
Method Summary
 void decPersistentChannelCount()
           
 java.io.Serializable getPayload()
           
 byte[] getPayloadAsByteArray()
           
 int getPersistentChannelCount()
           
 void incPersistentChannelCount()
           
 
Methods inherited from interface org.jboss.messaging.core.Routable
containsHeader, decrementDeliveryCount, getDeliveryCount, getExpiration, getHeader, getHeaderNames, getHeaders, getMessage, getMessageID, getPriority, getTimestamp, incrementDeliveryCount, isExpired, isReference, isReliable, putHeader, removeHeader, setDeliveryCount, setPriority, setReliable
 

Method Detail

getPayload

public java.io.Serializable getPayload()

getPayloadAsByteArray

public byte[] getPayloadAsByteArray()

incPersistentChannelCount

public void incPersistentChannelCount()

decPersistentChannelCount

public void decPersistentChannelCount()

getPersistentChannelCount

public int getPersistentChannelCount()


Copyright © 2006 JBoss Inc. All Rights Reserved.