Class Location
java.lang.Object
org.apache.activemq.store.kahadb.disk.journal.Location
- All Implemented Interfaces:
Comparable<Location>
Used as a location in the data store.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final bytestatic final byte -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanintgetLatch()intintgetSize()bytegetType()inthashCode()voidreadExternal(DataInput dis) voidsetBatch(org.apache.activemq.store.kahadb.disk.journal.DataFileAppender.WriteBatch batch) voidsetDataFileId(int file) voidsetOffset(int offset) voidsetSize(int size) voidsetType(byte type) toString()voidwriteExternal(DataOutput dos)
-
Field Details
-
USER_TYPE
public static final byte USER_TYPE- See Also:
-
NOT_SET_TYPE
public static final byte NOT_SET_TYPE- See Also:
-
NOT_SET
public static final int NOT_SET- See Also:
-
-
Constructor Details
-
Location
public Location() -
Location
-
Location
public Location(int dataFileId, int offset)
-
-
Method Details
-
getSize
public int getSize()- Returns:
- the size of the data record including the header.
-
setSize
public void setSize(int size) - Parameters:
size- the size of the data record including the header.
-
getOffset
public int getOffset() -
setOffset
public void setOffset(int offset) -
getDataFileId
public int getDataFileId() -
setDataFileId
public void setDataFileId(int file) -
getType
public byte getType() -
setType
public void setType(byte type) -
toString
-
writeExternal
- Throws:
IOException
-
readExternal
- Throws:
IOException
-
getLatch
-
setBatch
public void setBatch(org.apache.activemq.store.kahadb.disk.journal.DataFileAppender.WriteBatch batch) -
compareTo
- Specified by:
compareToin interfaceComparable<Location>
-
equals
-
hashCode
public int hashCode() -
getException
-