Interface LiveObject

  • All Known Implementing Classes:
    ClusteredExecutorInfo, ClusteredTaskManager

    public interface LiveObject
    A LiveObject is 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 CacheService Thread that raised the event and asynchronous processing of the event through returned ComposableContinuations, which may be later processed on back-ground Threads by a ContinuationService.

    Since:
    21.12
    Author:
    bo
    • Method Detail

      • onUpdated

        ComposableContinuation onUpdated​(com.tangosol.net.CacheService service,
                                         com.tangosol.util.InvocableMap.Entry entry,
                                         Cause cause)
        The LiveObject was updated.

        This callback is invoked against the updated value, not the original value. The original value is available via the provided Event.

        Parameters:
        service - the CacheService for the LiveObject
        entry - the entry being updated
        cause - the Cause of the Event
        Returns:
        an optional ComposableContinuation to be performed asynchronously for the LiveObject (may be null)