java.lang.Object
org.apache.activemq.store.kahadb.disk.journal.Location
All Implemented Interfaces:
Comparable<Location>

public final class Location extends Object implements Comparable<Location>
Used as a location in the data store.
  • Field Details

  • Constructor Details

    • Location

      public Location()
    • Location

      public Location(Location item)
    • 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

      public String toString()
      Overrides:
      toString in class Object
    • writeExternal

      public void writeExternal(DataOutput dos) throws IOException
      Throws:
      IOException
    • readExternal

      public void readExternal(DataInput dis) throws IOException
      Throws:
      IOException
    • getLatch

      public CountDownLatch getLatch()
    • setBatch

      public void setBatch(org.apache.activemq.store.kahadb.disk.journal.DataFileAppender.WriteBatch batch)
    • compareTo

      public int compareTo(Location o)
      Specified by:
      compareTo in interface Comparable<Location>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getException

      public AtomicReference<IOException> getException()