- FanOutQueue - Class in com.bluejeans.common.bigqueue
-
A big, fast and persistent queue implementation supporting fan out semantics.
- FanOutQueue(String, String, int) - Constructor for class com.bluejeans.common.bigqueue.FanOutQueue
-
A big, fast and persistent queue implementation with fandout support.
- FanOutQueue(String, String) - Constructor for class com.bluejeans.common.bigqueue.FanOutQueue
-
A big, fast and persistent queue implementation with fanout support,
use default back data page size, see
DEFAULT_DATA_PAGE_SIZE
- findClosestIndex(long) - Method in class com.bluejeans.common.bigqueue.BigArray
-
Find an index closest to the specific timestamp when the corresponding item was appended
- findClosestIndex(long) - Method in class com.bluejeans.common.bigqueue.FanOutQueue
-
Find an index closest to the specific timestamp when the corresponding item was enqueued.
- flush() - Method in class com.bluejeans.common.bigqueue.BigArray
-
Force to persist newly appended data,
normally, you don't need to flush explicitly since:
1.) BigArray will automatically flush a cached page when it is replaced out,
2.) BigArray uses memory mapped file technology internally, and the OS will flush the changes even your process crashes,
call this periodically only if you need transactional reliability and you are aware of the cost to performance.
- flush() - Method in class com.bluejeans.common.bigqueue.BigQueue
-
Force to persist current state of the queue,
normally, you don't need to flush explicitly since: 1.) BigQueue will
automatically flush a cached page when it is replaced out, 2.) BigQueue
uses memory mapped file technology internally, and the OS will flush the
changes even your process crashes,
call this periodically only if you need transactional reliability and you
are aware of the cost to performance.
- flush() - Method in class com.bluejeans.common.bigqueue.FanOutQueue
-
Force to persist current state of the queue,
normally, you don't need to flush explicitly since:
1.) FanOutQueue will automatically flush a cached page when it is replaced out,
2.) FanOutQueue uses memory mapped file technology internally, and the OS will flush the changes even your process crashes,
call this periodically only if you need transactional reliability and you are aware of the cost to performance.
- forEach(byte[]) - Method in interface com.bluejeans.common.bigqueue.ItemIterator
-
- gc() - Method in class com.bluejeans.common.bigqueue.BigQueue
-
Delete all used data files to free disk space.
- get(long) - Method in class com.bluejeans.common.bigqueue.BigArray
-
Get the data at specific index
- get(long) - Method in class com.bluejeans.common.bigqueue.FanOutQueue
-
Retrieves data item at the specific index of the queue
- getBackFileSize() - Method in class com.bluejeans.common.bigqueue.BigArray
-
Get total size of back files(index and data files) of the big array
- getBackFileSize() - Method in class com.bluejeans.common.bigqueue.FanOutQueue
-
Current total size of the back files of this queue
- getDataPageSize() - Method in class com.bluejeans.common.bigqueue.BigArray
-
Get the back data file size per page.
- getFrontIndex() - Method in class com.bluejeans.common.bigqueue.FanOutQueue
-
Get the queue front index, this is the earliest appended index
- getFrontIndex(String) - Method in class com.bluejeans.common.bigqueue.FanOutQueue
-
- getHeadIndex() - Method in class com.bluejeans.common.bigqueue.BigArray
-
The head of the array.
- getItemLength(long) - Method in class com.bluejeans.common.bigqueue.BigArray
-
Get the data item length at specific index
- getLength(long) - Method in class com.bluejeans.common.bigqueue.FanOutQueue
-
Get length of data item at specific index of the queue
- getRearIndex() - Method in class com.bluejeans.common.bigqueue.FanOutQueue
-
Get the queue rear index, this is the next to be appended index
- getTailIndex() - Method in class com.bluejeans.common.bigqueue.BigArray
-
The tail of the array.
- getTimestamp(long) - Method in class com.bluejeans.common.bigqueue.BigArray
-
Get the timestamp of data at specific index,
this is the timestamp when the data was appended.
- getTimestamp(long) - Method in class com.bluejeans.common.bigqueue.FanOutQueue
-
Get timestamp of data item at specific index of the queue, this is the timestamp when corresponding item was appended into the queue.