Class AsyncCallbackSink<T>
java.lang.Object
io.micronaut.kubernetes.client.reactor.AsyncCallbackSink<T>
- Type Parameters:
T
- Type
- All Implemented Interfaces:
io.kubernetes.client.openapi.ApiCallback<T>
public class AsyncCallbackSink<T>
extends Object
implements io.kubernetes.client.openapi.ApiCallback<T>
Bridges the
ApiCallback
interface to an Reactor MonoSink
.- Since:
- 3.0
- Author:
- Pavol Gressa
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onDownloadProgress
(long bytesRead, long contentLength, boolean done) void
onFailure
(io.kubernetes.client.openapi.ApiException e, int statusCode, Map<String, List<String>> responseHeaders) void
void
onUploadProgress
(long bytesWritten, long contentLength, boolean done)
-
Constructor Details
-
AsyncCallbackSink
-
-
Method Details
-
onFailure
public void onFailure(io.kubernetes.client.openapi.ApiException e, int statusCode, Map<String, List<String>> responseHeaders) - Specified by:
onFailure
in interfaceio.kubernetes.client.openapi.ApiCallback<T>
-
onSuccess
- Specified by:
onSuccess
in interfaceio.kubernetes.client.openapi.ApiCallback<T>
-
onUploadProgress
public void onUploadProgress(long bytesWritten, long contentLength, boolean done) - Specified by:
onUploadProgress
in interfaceio.kubernetes.client.openapi.ApiCallback<T>
-
onDownloadProgress
public void onDownloadProgress(long bytesRead, long contentLength, boolean done) - Specified by:
onDownloadProgress
in interfaceio.kubernetes.client.openapi.ApiCallback<T>
-