public class PersistedLinkedList extends Object implements NodeStateEntryList
| Constructor and Description |
|---|
PersistedLinkedList(String fileName,
NodeStateEntryWriter writer,
NodeStateEntryReader reader,
int cacheSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(@NotNull NodeStateEntry item)
Add an item at the tail of the list.
|
void |
close() |
long |
estimatedMemoryUsage() |
boolean |
isEmpty() |
Iterator<NodeStateEntry> |
iterator()
Get an iterator to iterate over the whole list
|
NodeStateEntry |
remove()
Remove the first item from the list.
|
int |
size() |
public PersistedLinkedList(String fileName, NodeStateEntryWriter writer, NodeStateEntryReader reader, int cacheSize)
public void add(@NotNull
@NotNull NodeStateEntry item)
NodeStateEntryListadd in interface NodeStateEntryListpublic boolean isEmpty()
isEmpty in interface NodeStateEntryListpublic Iterator<NodeStateEntry> iterator()
NodeStateEntryListiterator in interface NodeStateEntryListpublic NodeStateEntry remove()
NodeStateEntryListremove in interface NodeStateEntryListpublic int size()
size in interface NodeStateEntryListpublic void close()
close in interface NodeStateEntryListpublic long estimatedMemoryUsage()
estimatedMemoryUsage in interface NodeStateEntryListCopyright © 2012–2020 The Apache Software Foundation. All rights reserved.