| Modifier and Type | Class and Description |
|---|---|
| protected static class | WriteBehindQueueManager.WriteBehindQueueFactory
Factory used to create write behind queues. |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final ReentrantReadWriteLock. | |
| private final ReentrantReadWriteLock | |
| private final ReentrantReadWriteLock. |
| Access | Constructor and Description |
|---|---|
| protected | WriteBehindQueueManager(CacheConfiguration
configuration for the cache this write behind queue manager is working with config, WriteBehindQueueManager.factory used to create the write behind queues. queueFactoryCreate the write behind queue manager with queues created via the passed in |
| public | WriteBehindQueueManager(CacheConfiguration
the configuration for the queue config)Create a new write behind queue manager. |
| Modifier and Type | Method and Description |
|---|---|
| public void | delete(final CacheEntry
the cache entry for which a delete operation will be added to the write behind queue entry)Implements net. |
| private WriteBehind | |
| public long | getQueueSize()
Implements net. |
| public void | setOperationsFilter(final OperationsFilter<T>
the filter that will be used as of now filter)Implements net. |
| public void | start(final CacheWriter
the cache writer that should be used to process the operations writer)Implements net. |
| public void | stop()
Implements net. |
| public void | write(final Element
the element for which a write operation will be added to the write behind queue element)Implements net. |
| queues | back to summary |
|---|---|
| private final List<WriteBehind> queues | |
| readLock | back to summary |
|---|---|
| private final ReentrantReadWriteLock. | |
| rwLock | back to summary |
|---|---|
| private final ReentrantReadWriteLock rwLock | |
| writeLock | back to summary |
|---|---|
| private final ReentrantReadWriteLock. | |
| WriteBehindQueueManager | back to summary |
|---|---|
| protected WriteBehindQueueManager(CacheConfiguration config, WriteBehindQueueManager. Create the write behind queue manager with queues created via the passed in
| |
| WriteBehindQueueManager | back to summary |
|---|---|
| public WriteBehindQueueManager(CacheConfiguration config) Create a new write behind queue manager. Which in turn will create as many queues as
required by the
| |
| delete | back to summary |
|---|---|
| public void delete(final CacheEntry entry) Implements net. Doc from net. Add a delete operation for the given cache entry
| |
| getQueue | back to summary |
|---|---|
| private WriteBehind getQueue(final Object key) | |
| getQueueSize | back to summary |
|---|---|
| public long getQueueSize() Implements net. Doc from net. Gets the best estimate for items in the queue still awaiting processing. Not including elements currently processed
| |
| setOperationsFilter | back to summary |
|---|---|
| public void setOperationsFilter(final OperationsFilter<T> filter) Implements net. Doc from net. Set the operations filter that should be used.
| |
| start | back to summary |
|---|---|
| public void start(final CacheWriter writer) throws CacheException Implements net. Doc from net. Start the write behind queue with a cache writer
| |
| stop | back to summary |
|---|---|
| public void stop() throws CacheException Implements net. Doc from net. Stop the coordinator and all the internal data structures. This stops as quickly as possible without losing any previously added items. However, no guarantees are made towards the processing of these items. It's highly likely that items are still inside the internal data structures and not processed. | |
| write | back to summary |
|---|---|
| public void write(final Element element) Implements net. Doc from net. Add a write operation for a given element.
| |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected WriteBehind | Returns: a write behind queueindex of the stripe index, CacheConfiguration cache configuration for the cache this queue will be associated with. config)Create a write behind queue stripe. |
| WriteBehindQueueFactory | back to summary |
|---|---|
| protected WriteBehindQueueFactory() | |
| createQueue | back to summary |
|---|---|
| protected WriteBehind createQueue(int index, CacheConfiguration config) Create a write behind queue stripe.
| |