org.apache.activemq.kaha.impl.data
Class DataItem
java.lang.Object
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
DataItem
public DataItem()
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-2012 The Apache Software Foundation. All Rights Reserved.