public class LargeBody extends Object
Constructor and Description |
---|
LargeBody(LargeServerMessage message,
StorageManager storageManager) |
LargeBody(LargeServerMessage message,
StorageManager storageManager,
SequentialFile file) |
LargeBody(long messageID,
JournalStorageManager storageManager) |
Modifier and Type | Method and Description |
---|---|
void |
addBytes(ActiveMQBuffer bytes) |
void |
addBytes(byte[] bytes) |
void |
checkDelete() |
void |
clearFile() |
void |
clearPendingRecordID() |
void |
copyInto(LargeServerMessage newMessage) |
void |
copyInto(LargeServerMessage newMessage,
io.netty.buffer.ByteBuf newHeader,
int skipBytes) |
SequentialFile |
createFile() |
void |
deleteFile() |
void |
ensureFileExists(boolean toOpen) |
SequentialFile |
getAppendFile() |
int |
getBodyBufferSize() |
long |
getBodySize() |
LargeBodyReader |
getLargeBodyReader() |
long |
getMessageID() |
long |
getPendingRecordID() |
SequentialFile |
getReadingFile()
This will return its own File useful for reading the file on the large message while delivering, browsing..
|
ActiveMQBuffer |
getReadOnlyBodyBuffer() |
StorageManager |
getStorageManager() |
long |
getStoredBodySize()
This will return the bodySize without trying to open the file, just returning what's currently stored
|
boolean |
hasPendingRecord() |
boolean |
isPaged() |
ByteBuffer |
map() |
protected void |
openFile() |
void |
referenceOriginalMessage(LargeBody original) |
void |
releaseResources(boolean sync) |
void |
replaceFile(SequentialFile file)
Meant for test-ability, be careful if you decide to use it.
|
void |
setBodySize(long size) |
void |
setMessage(LargeServerMessage message) |
void |
setPaged() |
void |
setPendingRecordID(long pendingRecordID) |
void |
setStorageManager(StorageManager storageManager) |
void |
validateFile() |
public LargeBody(LargeServerMessage message, StorageManager storageManager)
public LargeBody(LargeServerMessage message, StorageManager storageManager, SequentialFile file)
public LargeBody(long messageID, JournalStorageManager storageManager)
public StorageManager getStorageManager()
public void setStorageManager(StorageManager storageManager)
public ByteBuffer map() throws Exception
Exception
public void setMessage(LargeServerMessage message)
public void setPaged()
public boolean isPaged()
public void clearFile()
public void deleteFile()
public long getMessageID()
public void addBytes(ActiveMQBuffer bytes) throws Exception
Exception
public void validateFile() throws ActiveMQException
ActiveMQException
public void ensureFileExists(boolean toOpen) throws ActiveMQException
ActiveMQException
public long getStoredBodySize()
public void setBodySize(long size)
public long getBodySize() throws ActiveMQException
ActiveMQException
public LargeBodyReader getLargeBodyReader()
public SequentialFile getReadingFile() throws ActiveMQException
ActiveMQException
public void replaceFile(SequentialFile file)
file
- public SequentialFile getAppendFile() throws ActiveMQException
ActiveMQException
public void checkDelete()
public void referenceOriginalMessage(LargeBody original)
public ActiveMQBuffer getReadOnlyBodyBuffer()
public int getBodyBufferSize()
public void releaseResources(boolean sync)
public void copyInto(LargeServerMessage newMessage) throws Exception
Exception
public void copyInto(LargeServerMessage newMessage, io.netty.buffer.ByteBuf newHeader, int skipBytes) throws Exception
Exception
public SequentialFile createFile()
public boolean hasPendingRecord()
public void clearPendingRecordID()
public long getPendingRecordID()
public void setPendingRecordID(long pendingRecordID)
Copyright © 2021 JBoss by Red Hat. All rights reserved.