Class ApiCallbackEmitter<T>
java.lang.Object
io.micronaut.kubernetes.client.rxjava2.ApiCallbackEmitter<T>
- Type Parameters:
T
- Type
- All Implemented Interfaces:
io.kubernetes.client.openapi.ApiCallback<T>
public class ApiCallbackEmitter<T>
extends Object
implements io.kubernetes.client.openapi.ApiCallback<T>
Bridges the
ApiCallback
interface to an RxJava2 SingleEmitter
.- 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
-
ApiCallbackEmitter
-
-
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>
-