Class Permits.Literal

java.lang.Object
com.oracle.coherence.cdi.AnnotationLiteral<Permits>
com.oracle.coherence.concurrent.cdi.Permits.Literal
All Implemented Interfaces:
Annotation
Enclosing class:
Permits

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

    • of

      public static Permits.Literal of(int sPermits)
      Create a Permits.Literal.
      Parameters:
      sPermits - the permits count
      Returns:
      a Permits.Literal with the specified value
    • value

      public int value()
      The permits count for the semaphore.
      Returns:
      the permits count