Class LargeBody


  • public class LargeBody
    extends Object
    • Method Detail

      • setStorageManager

        public void setStorageManager​(StorageManager storageManager)
      • setPaged

        public void setPaged()
      • isPaged

        public boolean isPaged()
      • clearFile

        public void clearFile()
      • releaseComplete

        public void releaseComplete()
      • deleteFile

        public void deleteFile()
      • getMessageID

        public long getMessageID()
      • getStoredBodySize

        public long getStoredBodySize()
        This will return the bodySize without trying to open the file, just returning what's currently stored
      • setBodySize

        public void setBodySize​(long size)
      • replaceFile

        public void replaceFile​(SequentialFile file)
        Meant for test-ability, be careful if you decide to use it. and in case you use it for a real reason, please change the documentation here.
        Parameters:
        file -
      • checkDelete

        public void checkDelete()
      • referenceOriginalMessage

        public void referenceOriginalMessage​(LargeBody original)
      • getReadOnlyBodyBuffer

        public ActiveMQBuffer getReadOnlyBodyBuffer()
      • getBodyBufferSize

        public int getBodyBufferSize()
      • releaseResources

        public void releaseResources​(boolean sync,
                                     boolean sendEvent)
        sendEvent means it's a close happening from end of write largemessage. While reading the largemessage we don't need (and shouldn't inform the backup