Annotation Type NamedCache


  • @Retention(RUNTIME)
    @Target({METHOD,FIELD,PARAMETER})
    public @interface NamedCache
    Annotation to be applied to a Cache @Inject point to define the cache configuration for the Producer to configure the cache
    Author:
    steve
    • Element Detail

      • cacheName

        String cacheName
        The name of the Cache in the Cache Manager
        Returns:
        Default:
        ""
      • keyClass

        Class keyClass
        The class of the Cache Keys
        Returns:
        Default:
        java.lang.Object.class
      • valueClass

        Class valueClass
        The class of the cache values
        Returns:
        Default:
        java.lang.Object.class
      • statisticsEnabled

        boolean statisticsEnabled
        Are statistics enabled for the cache
        Returns:
        Default:
        false
      • managementEnabled

        boolean managementEnabled
        Is Managemenet Enabled for the Cache
        Returns:
        Default:
        false
      • readThrough

        boolean readThrough
        Is the cache configured for read through. If this is set to true a CacheLoader factory class must also be specified
        Returns:
        Default:
        false
      • writeThrough

        boolean writeThrough
        Is the cache configured for write through. If this is set a CacheWriter factory class must be specified
        Returns:
        Default:
        false
      • cacheLoaderFactoryClass

        Class cacheLoaderFactoryClass
        The factory class of the CacheLoader to be attached to the cache
        Returns:
        Default:
        java.lang.Object.class
      • cacheWriterFactoryClass

        Class cacheWriterFactoryClass
        The factory class of the CacheWriter to be attached to the cache
        Returns:
        Default:
        java.lang.Object.class
      • expiryPolicyFactoryClass

        Class expiryPolicyFactoryClass
        The class of the expiry policy factory used to create an expiry policy for the cache
        Default:
        java.lang.Object.class