Interface CallGenerator

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface CallGenerator
The interface Call generator. It's for homogenizing client interface so that we can invoke a generized adaptor interface elsewhere.

For example, we can adapt list-node interface from CoreV1Api package like:

(CallGeneratorParams params) -> { return coreV1Api.listNodeCall( null, null, null, null, null, params.resourceVersion, params.timeoutSeconds, params.watch, null, null); },

  • Method Summary

    Modifier and Type
    Method
    Description
    okhttp3.Call
    Generate call.
  • Method Details

    • generate

      okhttp3.Call generate(CallGeneratorParams params) throws io.kubernetes.client.openapi.ApiException
      Generate call.
      Parameters:
      params - the params
      Returns:
      the call
      Throws:
      io.kubernetes.client.openapi.ApiException - the api exception