Package io.quarkus.grpc.deployment
Class BindableServiceBuildItem
java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.grpc.deployment.BindableServiceBuildItem
public final class BindableServiceBuildItem
extends io.quarkus.builder.item.MultiBuildItem
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final org.jboss.jandex.DotName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.jboss.jandex.DotNamebooleanbooleanvoidregisterBlockingMethod(String method) A method fromserviceClassis annotated withBlocking.voidregisterVirtualMethod(String method) A method fromserviceClassis annotated withRunOnVirtualThread.
-
Field Details
-
serviceClass
final org.jboss.jandex.DotName serviceClass -
blockingMethods
-
virtualMethods
-
-
Constructor Details
-
BindableServiceBuildItem
public BindableServiceBuildItem(org.jboss.jandex.DotName serviceClass)
-
-
Method Details
-
registerBlockingMethod
A method fromserviceClassis annotated withBlocking. Stores the method name so the runtime interceptor can recognize it. Note: gRPC method have unique names - overloading is not permitted.- Parameters:
method- the method name
-
registerVirtualMethod
A method fromserviceClassis annotated withRunOnVirtualThread. Stores the method name so the runtime interceptor can recognize it. Note: gRPC method have unique names - overloading is not permitted.- Parameters:
method- the method name
-
hasBlockingMethods
public boolean hasBlockingMethods() -
hasVirtualMethods
public boolean hasVirtualMethods() -
getServiceClass
public org.jboss.jandex.DotName getServiceClass()
-