org.jboss.messaging.core.server
Interface LargeServerMessage

All Superinterfaces:
EncodingSupport, Message, ServerMessage
All Known Implementing Classes:
JournalLargeServerMessage, NullStorageLargeServerMessage

public interface LargeServerMessage
extends ServerMessage

A LargeMessage

Author:
Clebert Suconic Created 30-Sep-08 10:58:04 AM

Method Summary
 void addBytes(byte[] bytes)
           
 void complete()
           
 void deleteFile()
           
 long getLargeBodySize()
           
 LargeServerMessage getLinkedMessage()
          When a large message is copied (e.g.
 boolean isComplete()
           
 void releaseResources()
          Close the files if opened
 void setComplete(boolean isComplete)
           
 void setLinkedMessage(LargeServerMessage message)
          When a large message is copied (e.g.
 
Methods inherited from interface org.jboss.messaging.core.server.ServerMessage
copy, copy, createReference, decrementDurableRefCount, decrementRefCount, getMemoryEstimate, getRefCount, incrementDurableRefCount, incrementRefCount, isStored, setMessageID, setStored
 
Methods inherited from interface org.jboss.messaging.core.message.Message
containsProperty, containsProperty, decode, decodeBody, decodeProperties, encode, encodeBody, encodeBody, encodeProperties, getBody, getBodyInputStream, getBodySize, getDestination, getEncodeSize, getExpiration, getMessageID, getPriority, getProperties, getPropertiesEncodeSize, getProperty, getProperty, getPropertyNames, getTimestamp, getType, isDurable, isExpired, isLargeMessage, putBooleanProperty, putBooleanProperty, putByteProperty, putByteProperty, putBytesProperty, putBytesProperty, putDoubleProperty, putDoubleProperty, putFloatProperty, putFloatProperty, putIntProperty, putIntProperty, putLongProperty, putLongProperty, putShortProperty, putShortProperty, putStringProperty, putStringProperty, putTypedProperties, removeProperty, removeProperty, setBody, setBodyInputStream, setDestination, setDurable, setExpiration, setPriority, setTimestamp, toMap
 
Methods inherited from interface org.jboss.messaging.core.journal.EncodingSupport
decode, encode, getEncodeSize
 

Method Detail

addBytes

void addBytes(byte[] bytes)
              throws java.lang.Exception
Throws:
java.lang.Exception

setLinkedMessage

void setLinkedMessage(LargeServerMessage message)
When a large message is copied (e.g. ExpiryQueue) instead of copying the file, we specify a link between the messages


getLinkedMessage

LargeServerMessage getLinkedMessage()
When a large message is copied (e.g. ExpiryQueue) instead of copying the file, we specify a link between the messages


releaseResources

void releaseResources()
Close the files if opened


getLargeBodySize

long getLargeBodySize()
Specified by:
getLargeBodySize in interface Message

complete

void complete()
              throws java.lang.Exception
Throws:
java.lang.Exception

setComplete

void setComplete(boolean isComplete)

isComplete

boolean isComplete()

deleteFile

void deleteFile()
                throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2006 JBoss Inc. All Rights Reserved.