Class WildFlyGrpcHandler
java.lang.Object
org.a2aproject.sdk.grpc.A2AServiceGrpc.A2AServiceImplBase
org.a2aproject.sdk.transport.grpc.handler.GrpcHandler
org.wildfly.extras.a2a.server.apps.grpc.WildFlyGrpcHandler
- All Implemented Interfaces:
io.grpc.BindableService,org.a2aproject.sdk.grpc.A2AServiceGrpc.AsyncService
public class WildFlyGrpcHandler
extends org.a2aproject.sdk.transport.grpc.handler.GrpcHandler
WildFly gRPC Handler that uses static cache for CDI beans.
The WildFly gRPC subsystem instantiates this class directly using
reflection and the default constructor, bypassing CDI completely.
Since CDI is not available on gRPC threads, we use static cache
populated during application startup when CDI is available.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.a2aproject.sdk.spec.AgentCardprotected org.a2aproject.sdk.transport.grpc.handler.CallContextFactoryprotected Executorprotected org.a2aproject.sdk.spec.AgentCardprotected org.a2aproject.sdk.server.requesthandlers.RequestHandlerMethods inherited from class org.a2aproject.sdk.transport.grpc.handler.GrpcHandler
cancelTask, createTaskPushNotificationConfig, deleteTaskPushNotificationConfig, getCurrentMetadata, getCurrentMethodName, getCurrentPeerInfo, getDeploymentClassLoader, getExtendedAgentCard, getTask, getTaskPushNotificationConfig, listTaskPushNotificationConfigs, listTasks, sendMessage, sendStreamingMessage, setStreamingSubscribedRunnable, subscribeToTaskMethods inherited from class org.a2aproject.sdk.grpc.A2AServiceGrpc.A2AServiceImplBase
bindService
-
Constructor Details
-
WildFlyGrpcHandler
public WildFlyGrpcHandler()
-
-
Method Details
-
getRequestHandler
protected org.a2aproject.sdk.server.requesthandlers.RequestHandler getRequestHandler()- Specified by:
getRequestHandlerin classorg.a2aproject.sdk.transport.grpc.handler.GrpcHandler
-
getAgentCard
protected org.a2aproject.sdk.spec.AgentCard getAgentCard()- Specified by:
getAgentCardin classorg.a2aproject.sdk.transport.grpc.handler.GrpcHandler
-
getExtendedAgentCard
protected org.a2aproject.sdk.spec.AgentCard getExtendedAgentCard()- Specified by:
getExtendedAgentCardin classorg.a2aproject.sdk.transport.grpc.handler.GrpcHandler
-
getCallContextFactory
protected org.a2aproject.sdk.transport.grpc.handler.CallContextFactory getCallContextFactory()- Specified by:
getCallContextFactoryin classorg.a2aproject.sdk.transport.grpc.handler.GrpcHandler
-
getExecutor
- Specified by:
getExecutorin classorg.a2aproject.sdk.transport.grpc.handler.GrpcHandler
-