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 Details

    • AsyncCallbackSink

      public AsyncCallbackSink(reactor.core.publisher.MonoSink<T> monoSink)
  • Method Details

    • onFailure

      public void onFailure(io.kubernetes.client.openapi.ApiException e, int statusCode, Map<String,List<String>> responseHeaders)
      Specified by:
      onFailure in interface io.kubernetes.client.openapi.ApiCallback<T>
    • onSuccess

      public void onSuccess(T result, int statusCode, Map<String,List<String>> responseHeaders)
      Specified by:
      onSuccess in interface io.kubernetes.client.openapi.ApiCallback<T>
    • onUploadProgress

      public void onUploadProgress(long bytesWritten, long contentLength, boolean done)
      Specified by:
      onUploadProgress in interface io.kubernetes.client.openapi.ApiCallback<T>
    • onDownloadProgress

      public void onDownloadProgress(long bytesRead, long contentLength, boolean done)
      Specified by:
      onDownloadProgress in interface io.kubernetes.client.openapi.ApiCallback<T>