Class View.Literal

  • All Implemented Interfaces:
    java.lang.annotation.Annotation
    Enclosing class:
    View

    public static class View.Literal
    extends java.lang.Object
    implements View
    An annotation literal for the View annotation.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class io.micronaut.coherence.annotation.View

        View.Literal
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static View.Literal INSTANCE
      A singleton instance of View.Literal with the cache values flag set to true.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()
      Method returns the type of the annotation literal.
      boolean cacheValues()
      Obtain the flag that is true to cache both the keys and values of the materialized view locally, or false to only cache the keys (the default value is true).
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      static View.Literal of​(boolean fCacheValues)
      Create a View.Literal.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.annotation.Annotation

        annotationType, toString
    • Field Detail

      • INSTANCE

        public static final View.Literal INSTANCE
        A singleton instance of View.Literal with the cache values flag set to true.
    • Method Detail

      • of

        public static View.Literal of​(boolean fCacheValues)
        Create a View.Literal.
        Parameters:
        fCacheValues - a flag that is true to cache both the keys and values of the materialized view locally, or false to only cache the keys
        Returns:
        a View.Literal with the specified value
      • cacheValues

        public boolean cacheValues()
        Obtain the flag that is true to cache both the keys and values of the materialized view locally, or false to only cache the keys (the default value is true).
        Returns:
        true to indicate that values should be cache or false to indicate that only keys should be cached.
      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in interface java.lang.annotation.Annotation
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.lang.annotation.Annotation
      • annotationType

        public java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()
        Method returns the type of the annotation literal. The value is resolved lazily during the first call of this method.
        Specified by:
        annotationType in interface java.lang.annotation.Annotation
        Returns:
        annotation type of this literal.