Class ProviderCacheItem


  • public class ProviderCacheItem
    extends ProviderItemBase
    ProviderCacheItem is just like a CacheItem , but it has some limited fields.
    • Constructor Detail

      • ProviderCacheItem

        public ProviderCacheItem​(java.lang.Object value)
        Initializes an instance of ProviderCacheItem.
        Parameters:
        value - Object to initialize ProviderCacheItem with.
    • Method Detail

      • getValue

        public <T> T getValue​(java.lang.Class<?> cls)
                       throws OperationFailedException
        Gets the value of the ProviderCacheItem.
        Type Parameters:
        T - Specifies the type of value obtained from the ProviderCacheItem.
        Parameters:
        cls - Specifies the class of value obtained from the ProviderCacheItem.
        Returns:
        The value of the ProviderCacheItem.
        Throws:
        OperationFailedException
      • setValue

        public void setValue​(java.lang.Object value)
        Sets the value of the ProviderCacheItem.
        Parameters:
        value - The object that is to be set as ProviderCacheItem value.