Annotation Type RmiCacheResult


@Target({TYPE,METHOD}) @Retention(RUNTIME) public @interface RmiCacheResult
Defines a cache for method invocation results of this Class or methods.

Will pass all method parameters to Objects.hash(Object...) to generate a cache key.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    long
    The duration in milliseconds before a cached result expires.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final long
     
  • Field Details

    • DEFAULT_RESULT_EXPIRATION

      static final long DEFAULT_RESULT_EXPIRATION
      See Also:
  • Element Details

    • value

      long value
      The duration in milliseconds before a cached result expires.
      Returns:
      duration in milliseconds before a cached result expires
      Default:
      1000L