Class PListImpl
java.lang.Object
org.apache.activemq.store.kahadb.disk.index.ListIndex<String,Location>
org.apache.activemq.store.kahadb.plist.PListImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.activemq.store.PList
org.apache.activemq.store.PList.PListIterator -
Field Summary
Fields inherited from class org.apache.activemq.store.kahadb.disk.index.ListIndex
headPageId, loaded, NOT_SET, pageFile, tailPageId -
Method Summary
Modifier and TypeMethodDescriptionadd(Transaction tx, String key, Location value) addFirst(Transaction tx, String key, Location value) voidclaimFileLocations(Set<Integer> candidates) voidclear(Transaction tx) clear the indexvoiddestroy()org.apache.activemq.store.PListEntryget(long position) org.apache.activemq.store.PListEntrygetFirst()org.apache.activemq.store.PListEntrygetLast()getName()booleanisEmpty()org.apache.activemq.store.PList.PListIteratoriterator()longprotected voidonLoad(ListNode<String, Location> node, Transaction tx) voidbooleanremove(long position) booleanbooleanvoidtoString()voidwrite(DataOutput out) Methods inherited from class org.apache.activemq.store.kahadb.disk.index.ListIndex
containsKey, createNode, get, getFirst, getHead, getHeadPageId, getKeyMarshaller, getLast, getPageFile, getTail, getTailPageId, getValueMarshaller, isEmpty, isTransient, iterator, iterator, listNodeIterator, load, put, remove, setHeadPageId, setKeyMarshaller, setPageFile, setTailPageId, setValueMarshaller, size, storeNode, unloadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.activemq.store.PList
size
-
Method Details
-
setName
-
getName
- Specified by:
getNamein interfaceorg.apache.activemq.store.PList
-
write
- Throws:
IOException
-
destroy
- Specified by:
destroyin interfaceorg.apache.activemq.store.PList- Throws:
IOException
-
addLast
- Specified by:
addLastin interfaceorg.apache.activemq.store.PList- Throws:
IOException
-
addFirst
- Specified by:
addFirstin interfaceorg.apache.activemq.store.PList- Throws:
IOException
-
remove
- Specified by:
removein interfaceorg.apache.activemq.store.PList- Throws:
IOException
-
remove
- Throws:
IOException
-
remove
- Throws:
IOException
-
get
- Throws:
IOException
-
getFirst
- Throws:
IOException
-
getLast
- Throws:
IOException
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceorg.apache.activemq.store.PList
-
iterator
- Specified by:
iteratorin interfaceorg.apache.activemq.store.PList- Throws:
IOException
-
claimFileLocations
- Throws:
IOException
-
messageSize
public long messageSize()- Specified by:
messageSizein interfaceorg.apache.activemq.store.PList
-
add
- Overrides:
addin classListIndex<String,Location> - Throws:
IOException
-
addFirst
- Overrides:
addFirstin classListIndex<String,Location> - Throws:
IOException
-
clear
Description copied from interface:Indexclear the index -
onLoad
-
onRemove
-
toString
-