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
An annotation literal for the
Permits
annotation.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.oracle.coherence.concurrent.cdi.Permits
Permits.Literal
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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
toString
-
Method Details
-
of
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
-