org.codehaus.activemq.journal.impl
Class RecordHeader
java.lang.Object
org.codehaus.activemq.journal.impl.RecordHeader
- public class RecordHeader
- extends Object
Serializes/Deserializes record header information.
- Version:
- $Revision: 1.2 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RECORD_HEADER_SIZE
public static final int RECORD_HEADER_SIZE
- See Also:
- Constant Field Values
START_OF_RECORD
public static final byte[] START_OF_RECORD
length
public int length
sequenceId
public long sequenceId
recordType
public byte recordType
RecordHeader
public RecordHeader()
toByteBuffer
public ByteBuffer toByteBuffer()
- Returns:
writeRecordHeader
void writeRecordHeader(DataOutput out)
throws IOException
- Throws:
IOException
readRecordHeader
void readRecordHeader(DataInput in)
throws IOException
- Throws:
IOException
invalidate
public void invalidate()
isValid
public boolean isValid()
bulkSet
public void bulkSet(byte recordType,
long sequenceId,
byte[] data)
- Parameters:
data
-
Copyright © 2004 Protique, Ltd.. All Rights Reserved.