Package org.a2aproject.sdk.client.http
Class VertxA2AHttpClientProvider
java.lang.Object
org.a2aproject.sdk.client.http.VertxA2AHttpClientProvider
- All Implemented Interfaces:
A2AHttpClientProvider
Service provider for
VertxA2AHttpClient.
This provider has a higher priority (100) than the JDK implementation and will be preferred when the Vert.x dependencies are available on the classpath.
If Vert.x classes are not available at runtime, this provider will check for their
presence and throw an IllegalStateException when attempting to create a client.
The ServiceLoader mechanism will skip this provider and fall back to the JDK implementation.
-
Constructor Details
-
VertxA2AHttpClientProvider
public VertxA2AHttpClientProvider()
-
-
Method Details
-
create
Description copied from interface:A2AHttpClientProviderCreates a new instance of an A2AHttpClient.- Specified by:
createin interfaceA2AHttpClientProvider- Returns:
- a new A2AHttpClient instance
-
priority
public int priority()Description copied from interface:A2AHttpClientProviderReturns the priority of this provider. Higher priority providers are preferred over lower priority ones.Default priorities:
- JdkA2AHttpClient: 0 (fallback)
- VertxA2AHttpClient: 100 (preferred when available)
- Specified by:
priorityin interfaceA2AHttpClientProvider- Returns:
- the priority value (higher is better)
-
name
Description copied from interface:A2AHttpClientProviderReturns the name of this provider for logging and debugging purposes.- Specified by:
namein interfaceA2AHttpClientProvider- Returns:
- the provider name
-