Package dev.openfga.sdk.api.client
Class HttpRequestAttempt<T>
- java.lang.Object
-
- dev.openfga.sdk.api.client.HttpRequestAttempt<T>
-
public class HttpRequestAttempt<T> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description HttpRequestAttempt(java.net.http.HttpRequest request, java.lang.String name, java.lang.Class<T> clazz, ApiClient apiClient, Configuration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpRequestAttempt<T>
addTelemetryAttribute(Attribute attribute, java.lang.String value)
HttpRequestAttempt<T>
addTelemetryAttributes(java.util.Map<Attribute,java.lang.String> attributes)
java.util.concurrent.CompletableFuture<ApiResponse<T>>
attemptHttpRequest()
java.util.Map<Attribute,java.lang.String>
getTelemetryAttributes()
HttpRequestAttempt<T>
setTelemetryAttributes(java.util.Map<Attribute,java.lang.String> attributes)
-
-
-
Constructor Detail
-
HttpRequestAttempt
public HttpRequestAttempt(java.net.http.HttpRequest request, java.lang.String name, java.lang.Class<T> clazz, ApiClient apiClient, Configuration configuration) throws FgaInvalidParameterException
- Throws:
FgaInvalidParameterException
-
-
Method Detail
-
getTelemetryAttributes
public java.util.Map<Attribute,java.lang.String> getTelemetryAttributes()
-
setTelemetryAttributes
public HttpRequestAttempt<T> setTelemetryAttributes(java.util.Map<Attribute,java.lang.String> attributes)
-
addTelemetryAttribute
public HttpRequestAttempt<T> addTelemetryAttribute(Attribute attribute, java.lang.String value)
-
addTelemetryAttributes
public HttpRequestAttempt<T> addTelemetryAttributes(java.util.Map<Attribute,java.lang.String> attributes)
-
attemptHttpRequest
public java.util.concurrent.CompletableFuture<ApiResponse<T>> attemptHttpRequest() throws ApiException
- Throws:
ApiException
-
-