Interface LiveObject
-
- All Known Implementing Classes:
ClusteredExecutorInfo,ClusteredTaskManager
public interface LiveObjectALiveObjectis a Cache Entry Value that responds to Coherence Cache Events occurring on itself.Each event that may be handled is represented by a single method, providing a mechanism to perform synchronous processing on the
CacheServiceThreadthat raised the event and asynchronous processing of the event through returnedComposableContinuations, which may be later processed on back-groundThreads by aContinuationService.- Since:
- 21.12
- Author:
- bo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ComposableContinuationonDeleted(com.tangosol.net.CacheService service, com.tangosol.util.InvocableMap.Entry entry, Cause cause)TheLiveObjectwas deleted.ComposableContinuationonInserted(com.tangosol.net.CacheService service, com.tangosol.util.InvocableMap.Entry entry, Cause cause)TheLiveObjectwas inserted.ComposableContinuationonUpdated(com.tangosol.net.CacheService service, com.tangosol.util.InvocableMap.Entry entry, Cause cause)TheLiveObjectwas updated.
-
-
-
Method Detail
-
onInserted
ComposableContinuation onInserted(com.tangosol.net.CacheService service, com.tangosol.util.InvocableMap.Entry entry, Cause cause)
TheLiveObjectwas inserted.- Parameters:
service- theCacheServicefor theLiveObjectentry- the entry being insertedcause- theCauseof theEvent- Returns:
- an optional
ComposableContinuationto be performed asynchronously for theLiveObject(may benull)
-
onUpdated
ComposableContinuation onUpdated(com.tangosol.net.CacheService service, com.tangosol.util.InvocableMap.Entry entry, Cause cause)
TheLiveObjectwas updated.This callback is invoked against the updated value, not the original value. The original value is available via the provided
Event.- Parameters:
service- theCacheServicefor theLiveObjectentry- the entry being updatedcause- theCauseof theEvent- Returns:
- an optional
ComposableContinuationto be performed asynchronously for theLiveObject(may benull)
-
onDeleted
ComposableContinuation onDeleted(com.tangosol.net.CacheService service, com.tangosol.util.InvocableMap.Entry entry, Cause cause)
TheLiveObjectwas deleted.- Parameters:
service- theCacheServicefor theLiveObjectentry- the entry being deletedcause- theCauseof theEvent- Returns:
- an optional
ComposableContinuationto be performed asynchronously for theLiveObject(may benull)
-
-