Class SessionName.Literal

java.lang.Object
io.micronaut.coherence.annotation.AbstractNamedLiteral<SessionName>
io.micronaut.coherence.annotation.SessionName.Literal
All Implemented Interfaces:
Annotation
Enclosing class:
SessionName

public static final class SessionName.Literal extends AbstractNamedLiteral<SessionName> implements SessionName
An annotation literal for the SessionName annotation.
See Also:
  • Method Details

    • of

      public static SessionName.Literal of(String sName)
      Parameters:
      sName - the session name
      Returns:
      a SessionName.Literal with the specified value
    • value

      public String value()
      The name used to identify a specific session.
      Returns:
      the name used to identify a specific session
    • annotationType

      public Class<? extends 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 Annotation
      Returns:
      annotation type of this literal.