org.apache.activemq.store.kahadb.plist
Class PList

java.lang.Object
  extended by org.apache.activemq.store.kahadb.plist.PList

public class PList
extends java.lang.Object


Method Summary
 void addFirst(java.lang.String id, ByteSequence bs)
           
 void addLast(java.lang.String id, ByteSequence bs)
           
 void destroy()
           
 PListEntry get(int position)
           
 PListEntry getFirst()
           
 PListEntry getLast()
           
 long getLastId()
           
 java.lang.String getName()
           
 PListEntry getNext(PListEntry entry)
           
 long getRootId()
           
 boolean isEmpty()
           
 boolean isLoaded()
           
 PListEntry refresh(PListEntry entry)
           
 boolean remove(int position)
           
 boolean remove(PListEntry entry)
           
 boolean remove(java.lang.String id)
           
 void setLastId(long lastId)
           
 void setName(java.lang.String name)
           
 void setRootId(long rootId)
           
 int size()
           
 void unload()
           
 void write(java.io.DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.