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 SummaryConstructors Constructor Description LoadOperationObserver()Default constructorLoadOperationObserver(int cEntries)Constructor for loadAll() code path.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SetgetProcessedEntries()Set of entries successfully processed in loadAll().voidonComplete()Complete the current operation.voidonError(BinaryEntry binEntry, Exception exception)Indicate that the corresponding entry is in error, due to the given exception.voidonNext(BinaryEntry binEntry)Indicates the associated operation (load or store) has completed successfully and applied to the provided BinaryEntry.protected voidwaitForCompleted()Synchronize loadInternal or loadAllInternal with responses.
 
- 
- 
- 
Method Detail- 
onNextpublic void onNext(BinaryEntry binEntry) Indicates the associated operation (load or store) has completed successfully and applied to the provided BinaryEntry.- Specified by:
- onNextin interface- StoreObserver
- Parameters:
- binEntry- the associated entry
 
 - 
onErrorpublic void onError(BinaryEntry binEntry, Exception exception) Indicate that the corresponding entry is in error, due to the given exception.- Specified by:
- onErrorin interface- StoreObserver
- Parameters:
- binEntry- the associated entry
- exception- exception providing error details
 
 - 
onCompletepublic 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:
- onCompletein interface- StoreObserver
 
 - 
waitForCompletedprotected void waitForCompleted() Synchronize loadInternal or loadAllInternal with responses.- Throws:
- RuntimeException- upon interruption
 
 - 
getProcessedEntriesprotected Set getProcessedEntries() Set of entries successfully processed in loadAll().- Returns:
- set of good entries
 
 
- 
 
-