| Modifier and Type | Field and Description |
|---|---|
| private final long | |
| private final CacheEntry |
| Access | Constructor and Description |
|---|---|
| public | DeleteOperation(CacheEntry
the entry to delete entry)Create a new delete operation for a particular entry |
| public | DeleteOperation(CacheEntry
the entry to delete entry, long the creation time of the operation creationTime)Create a new delete operation for a particular entry and creation time |
| Modifier and Type | Method and Description |
|---|---|
| public BatchOperation | createBatchOperation(List<? extends SingleOperation>
the single operations that need to be regrouped in the batch operation operations)Implements net. |
| private CacheEntry | |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public long | getCreationTime()
Implements net. |
| public CacheEntry | |
| public Object | getKey()
Implements net. |
| public SingleOperationType | getType()
Implements net. |
| public int | |
| public void | performSingleOperation(CacheWriter
the cache writer this operation should be performed upon cacheWriter)Implements net. |
| public void | throwAway(final CacheWriter
the CacheWriter to delegate to cacheWriter, final RuntimeException the last exception encountered e)Implements net. |
| creationTime | back to summary |
|---|---|
| private final long creationTime | |
| entry | back to summary |
|---|---|
| private final CacheEntry entry | |
| DeleteOperation | back to summary |
|---|---|
| public DeleteOperation(CacheEntry entry) Create a new delete operation for a particular entry
| |
| DeleteOperation | back to summary |
|---|---|
| public DeleteOperation(CacheEntry entry, long creationTime) Create a new delete operation for a particular entry and creation time
| |
| createBatchOperation | back to summary |
|---|---|
| public BatchOperation createBatchOperation(List<? extends SingleOperation> operations) Implements net. Doc from net. Creates a batch operation that corresponds to the operation type of this single operation.
This batch operation will not be stored in the queue anymore and is solely used for structuring.
The data from the single operation will already be processed in the final form that will be expected by the
| |
| duplicateCacheEntryElement | back to summary |
|---|---|
| private CacheEntry duplicateCacheEntryElement(CacheEntry entry) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getCreationTime | back to summary |
|---|---|
| public long getCreationTime() Implements net. Doc from net. Retrieves the moment when the operation was created.
| |
| getEntry | back to summary |
|---|---|
| public CacheEntry getEntry() Retrieves the entry that will be used for this operation | |
| getKey | back to summary |
|---|---|
| public Object getKey() Implements net. Doc from net. Retrieves the element key for this operation.
| |
| getType | back to summary |
|---|---|
| public SingleOperationType getType() Implements net. Doc from net. Returns a stable identifier for the type this operation can be classified in. This is used to group and order batched operations.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| performSingleOperation | back to summary |
|---|---|
| public void performSingleOperation(CacheWriter cacheWriter) Implements net. Doc from net. Perform this operation as a single execution with the provided cache writer
| |
| throwAway | back to summary |
|---|---|
| public void throwAway(final CacheWriter cacheWriter, final RuntimeException e) Implements net. Doc from net. Called when all retries have failed
| |