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 thePermits
annotation.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.oracle.coherence.concurrent.cdi.Permits
Permits.Literal
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Permits.Literal
of(int sPermits)
Create aPermits.Literal
.int
value()
The permits count for the semaphore.-
Methods inherited from class com.oracle.coherence.cdi.AnnotationLiteral
annotationType, equals, hashCode
-
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, equals, hashCode, toString
-
-
-
-
Method Detail
-
of
public static Permits.Literal of(int sPermits)
Create aPermits.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
-
-