| Modifier and Type | Field and Description |
|---|---|
| private WriteBehind | |
| private OperationsFilter | |
| private boolean | |
| private boolean | |
| private final ReentrantReadWriteLock | |
| private CacheWriter |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | delete(CacheEntry
the cache entry for which a delete operation will be added to the write behind queue entry)Implements net. |
| public long | getQueueSize()
Implements net. |
| public void | |
| public void | setOperationsFilter(OperationsFilter<T>
the filter that will be used as of now filter)Implements net. |
| public void | start(CacheWriter
the cache writer that should be used to process the operations writerParam)Implements net. |
| public void | stop()
Implements net. |
| public void | write(Element
the element for which a write operation will be added to the write behind queue element)Implements net. |
| delegate | back to summary |
|---|---|
| private WriteBehind delegate | |
| filter | back to summary |
|---|---|
| private OperationsFilter<T> filter | |
| isStarted | back to summary |
|---|---|
| private boolean isStarted | |
| isStopped | back to summary |
|---|---|
| private boolean isStopped | |
| lock | back to summary |
|---|---|
| private final ReentrantReadWriteLock lock | |
| writer | back to summary |
|---|---|
| private CacheWriter writer | |
| NonStopWriteBehind | back to summary |
|---|---|
| public NonStopWriteBehind() | |
| delete | back to summary |
|---|---|
| public void delete(CacheEntry entry) Implements net. Doc from net. Add a delete operation for the given cache entry
| |
| 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
| |
| init | back to summary |
|---|---|
| public void init(WriteBehind writeBehind) | |
| setOperationsFilter | back to summary |
|---|---|
| public void setOperationsFilter(OperationsFilter<T> filter) Implements net. Doc from net. Set the operations filter that should be used.
| |
| start | back to summary |
|---|---|
| public void start(CacheWriter writerParam) 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(Element element) Implements net. Doc from net. Add a write operation for a given element. | |