Package io.quarkus.grpc
Class GrpcClient.Literal
- java.lang.Object
-
- javax.enterprise.util.AnnotationLiteral<GrpcClient>
-
- io.quarkus.grpc.GrpcClient.Literal
-
- All Implemented Interfaces:
Annotation
- Enclosing class:
- GrpcClient
public static final class GrpcClient.Literal extends javax.enterprise.util.AnnotationLiteral<GrpcClient> implements GrpcClient
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.quarkus.grpc.GrpcClient
GrpcClient.Literal
-
-
Field Summary
-
Fields inherited from interface io.quarkus.grpc.GrpcClient
ELEMENT_NAME
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GrpcClient.Literalof(String value)Creates a new instance ofGrpcClient.Literal.Stringvalue()-
Methods inherited from class javax.enterprise.util.AnnotationLiteral
annotationType, equals, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.annotation.Annotation
annotationType, equals, hashCode, toString
-
-
-
-
Method Detail
-
of
public static GrpcClient.Literal of(String value)
Creates a new instance ofGrpcClient.Literal.- Parameters:
value- the name of the gRPC service, must not benull, must not beblank- Returns:
- the literal instance.
-
value
public String value()
- Returns:
- the service name.
-
-