Package com.google.genai.gaos.operations
Class Operations.CancellationRelay
java.lang.Object
com.google.genai.gaos.operations.Operations.CancellationRelay
- Enclosing class:
- Operations
Relays cancellation of the future returned to the SDK user to the
in-flight HTTP call, releasing its connection.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()track(CompletableFuture<HttpResponse<InputStream>> transportFuture) Registers the transport-stage future of the current attempt.
-
Constructor Details
-
CancellationRelay
public CancellationRelay()
-
-
Method Details
-
track
public CompletableFuture<HttpResponse<InputStream>> track(CompletableFuture<HttpResponse<InputStream>> transportFuture) Registers the transport-stage future of the current attempt. -
cancel
public void cancel()
-