org.apache.activemq.kaha.impl.data
Class DataItem

java.lang.Object
  extended by org.apache.activemq.kaha.impl.data.DataItem
All Implemented Interfaces:
Item, StoreLocation

public final class DataItem
extends Object
implements Item, StoreLocation

A a wrapper for a data in the store


Field Summary
 
Fields inherited from interface org.apache.activemq.kaha.impl.data.Item
ACTIVE, FREE, LOCATION_SIZE, MAGIC, POSITION_NOT_SET
 
Constructor Summary
DataItem()
           
 
Method Summary
 DataItem copy()
           
 int getFile()
           
 long getOffset()
           
 int getSize()
           
 void setFile(int file)
           
 void setOffset(long offset)
           
 void setSize(int size)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataItem

public DataItem()
Method Detail

getSize

public int getSize()
Specified by:
getSize in interface StoreLocation
Returns:
See Also:
StoreLocation.getSize()

setSize

public void setSize(int size)
Parameters:
size - The size to set.

getOffset

public long getOffset()
Specified by:
getOffset in interface StoreLocation
Returns:
See Also:
StoreLocation.getOffset()

setOffset

public void setOffset(long offset)
Parameters:
offset - The offset to set.

getFile

public int getFile()
Specified by:
getFile in interface StoreLocation
Returns:
See Also:
StoreLocation.getFile()

setFile

public void setFile(int file)
Parameters:
file - The file to set.

toString

public String toString()
Overrides:
toString in class Object
Returns:
a pretty print

copy

public DataItem copy()


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.