public class FSTOffheapQueue extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FSTOffheapQueue.ByteBufferResult |
class |
FSTOffheapQueue.ConcurrentReadContext |
class |
FSTOffheapQueue.ConcurrentWriteContext |
| Constructor and Description |
|---|
FSTOffheapQueue(ByteBuffer buffer) |
FSTOffheapQueue(ByteBuffer buffer,
int numThreads) |
FSTOffheapQueue(int sizeMB) |
FSTOffheapQueue(int sizeMB,
int numThreads) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Object o) |
boolean |
addBytes(byte[] b) |
void |
addConcurrent(Object o)
perform multi threaded encoding.
|
FSTOffheapQueue.ConcurrentReadContext |
createConcurrentReader() |
FSTOffheapQueue.ConcurrentWriteContext |
createConcurrentWriter() |
boolean |
takeBytes(FSTOffheapQueue.ByteBufferResult res) |
Object |
takeObject(int[] sizeResult) |
Object |
takeObjectConcurrent() |
void |
waitForFinish() |
public FSTOffheapQueue(int sizeMB)
throws IOException
IOExceptionpublic FSTOffheapQueue(int sizeMB,
int numThreads)
throws IOException
IOExceptionpublic FSTOffheapQueue(ByteBuffer buffer) throws IOException
IOExceptionpublic FSTOffheapQueue(ByteBuffer buffer, int numThreads) throws IOException
IOExceptionpublic boolean addBytes(byte[] b)
throws IOException
IOExceptionpublic boolean add(Object o) throws IOException
IOExceptionpublic void addConcurrent(Object o) throws IOException, ExecutionException, InterruptedException
o - IOExceptionExecutionExceptionInterruptedExceptionpublic void waitForFinish()
throws InterruptedException
InterruptedExceptionpublic FSTOffheapQueue.ConcurrentWriteContext createConcurrentWriter()
public FSTOffheapQueue.ConcurrentReadContext createConcurrentReader() throws IOException
IOExceptionpublic Object takeObject(int[] sizeResult) throws ClassNotFoundException, InstantiationException, IllegalAccessException, IOException
public Object takeObjectConcurrent() throws InterruptedException
InterruptedExceptionpublic boolean takeBytes(FSTOffheapQueue.ByteBufferResult res) throws ClassNotFoundException, InstantiationException, IllegalAccessException, IOException
Copyright © 2014. All rights reserved.