public class JdbmQueue<E> extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
JdbmQueue.Consumer<E> |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
E |
dequeue() |
void |
enqueue(E e) |
boolean |
process(JdbmQueue.Consumer<E> consumer) |
void |
stop() |
public JdbmQueue(File file) throws IOException
IOExceptionpublic void enqueue(E e) throws IOException
IOExceptionpublic E dequeue() throws InterruptedException, IOException
InterruptedExceptionIOExceptionpublic boolean process(JdbmQueue.Consumer<E> consumer) throws IOException
IOExceptionpublic void stop()
public void close()
throws IOException
IOExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.