Package com.tangosol.net.cache
Class ReadWriteBackingMap.NonBlockingEntryStoreWrapper.LoadOperationObserver
- java.lang.Object
-
- com.tangosol.net.cache.ReadWriteBackingMap.NonBlockingEntryStoreWrapper.LoadOperationObserver
-
- All Implemented Interfaces:
StoreObserver
- Enclosing class:
- ReadWriteBackingMap.NonBlockingEntryStoreWrapper
public class ReadWriteBackingMap.NonBlockingEntryStoreWrapper.LoadOperationObserver extends Object implements StoreObserver
Callbacks invoked by NonBlockingEntryStore implementation to handle the result of load operations.
-
-
Constructor Summary
Constructors Constructor Description LoadOperationObserver()
Default constructorLoadOperationObserver(int cEntries)
Constructor for loadAll() code path.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set
getProcessedEntries()
Set of entries successfully processed in loadAll().void
onComplete()
Complete the current operation.void
onError(BinaryEntry binEntry, Exception exception)
Indicate that the corresponding entry is in error, due to the given exception.void
onNext(BinaryEntry binEntry)
Indicates the associated operation (load or store) has completed successfully and applied to the provided BinaryEntry.protected void
waitForCompleted()
Synchronize loadInternal or loadAllInternal with responses.
-
-
-
Method Detail
-
onNext
public void onNext(BinaryEntry binEntry)
Indicates the associated operation (load or store) has completed successfully and applied to the provided BinaryEntry.- Specified by:
onNext
in interfaceStoreObserver
- Parameters:
binEntry
- the associated entry
-
onError
public void onError(BinaryEntry binEntry, Exception exception)
Indicate that the corresponding entry is in error, due to the given exception.- Specified by:
onError
in interfaceStoreObserver
- Parameters:
binEntry
- the associated entryexception
- exception providing error details
-
onComplete
public void onComplete()
Complete the current operation. This is the last call to make on an observer, to signify that no further processing is necessary.- Specified by:
onComplete
in interfaceStoreObserver
-
waitForCompleted
protected void waitForCompleted()
Synchronize loadInternal or loadAllInternal with responses.- Throws:
RuntimeException
- upon interruption
-
getProcessedEntries
protected Set getProcessedEntries()
Set of entries successfully processed in loadAll().- Returns:
- set of good entries
-
-