org.apache.activemq.store.kahadb.plist
Class PList
java.lang.Object
org.apache.activemq.store.kahadb.plist.PList
public class PList
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
setName
public void setName(java.lang.String name)
getName
public java.lang.String getName()
size
public int size()
isEmpty
public boolean isEmpty()
getRootId
public long getRootId()
- Returns:
- the rootId
setRootId
public void setRootId(long rootId)
- Parameters:
rootId
- the rootId to set
getLastId
public long getLastId()
- Returns:
- the lastId
setLastId
public void setLastId(long lastId)
- Parameters:
lastId
- the lastId to set
isLoaded
public boolean isLoaded()
- Returns:
- the loaded
write
public void write(java.io.DataOutput out)
throws java.io.IOException
- Throws:
java.io.IOException
destroy
public void destroy()
throws java.io.IOException
- Throws:
java.io.IOException
unload
public void unload()
addLast
public void addLast(java.lang.String id,
ByteSequence bs)
throws java.io.IOException
- Throws:
java.io.IOException
addFirst
public void addFirst(java.lang.String id,
ByteSequence bs)
throws java.io.IOException
- Throws:
java.io.IOException
remove
public boolean remove(java.lang.String id)
throws java.io.IOException
- Throws:
java.io.IOException
remove
public boolean remove(int position)
throws java.io.IOException
- Throws:
java.io.IOException
remove
public boolean remove(PListEntry entry)
throws java.io.IOException
- Throws:
java.io.IOException
get
public PListEntry get(int position)
throws java.io.IOException
- Throws:
java.io.IOException
getFirst
public PListEntry getFirst()
throws java.io.IOException
- Throws:
java.io.IOException
getLast
public PListEntry getLast()
throws java.io.IOException
- Throws:
java.io.IOException
getNext
public PListEntry getNext(PListEntry entry)
throws java.io.IOException
- Throws:
java.io.IOException
refresh
public PListEntry refresh(PListEntry entry)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2005-2011. All Rights Reserved.