Interface Contextual<C>

  • Type Parameters:
    C - a cache context
    All Known Implementing Classes:
    StatefulSessionComponentInstance

    public interface Contextual<C>
    Exposes a mechanism for attaching a context to a cached object
    Author:
    Paul Ferraro
    • Method Detail

      • getCacheContext

        C getCacheContext()
        Returns the cache context of this cached object.
        Returns:
        a cache context
      • setCacheContext

        void setCacheContext​(C context)
        Sets the cache context of this cached object.
        Parameters:
        context - a cache context
      • removeCacheContext

        default C removeCacheContext()
        Removes any cache context associated with this cached object
        Returns:
        the removed cache context