Interface NessieApi

All Superinterfaces:
AutoCloseable
All Known Subinterfaces:
NessieApiV1, NessieApiV2
All Known Implementing Classes:
HttpApiV1, HttpApiV2

public interface NessieApi extends AutoCloseable
Base interface for all Nessie-API versions.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    default <C> Optional<C>
    unwrapClient(Class<C> clientType)
    Returns the possibly protocol but definitely implementation specific client instance.
  • Method Details

    • close

      void close()
      Specified by:
      close in interface AutoCloseable
    • unwrapClient

      default <C> Optional<C> unwrapClient(Class<C> clientType)
      Returns the possibly protocol but definitely implementation specific client instance.
      Type Parameters:
      C - requested/expected client type.
      Parameters:
      clientType - Expected client type.
      Returns:
      an Optional with either the client of the requested type or empty.