Package org.projectnessie.client.api
Interface NessieApi
- All Superinterfaces:
AutoCloseable
- All Known Subinterfaces:
NessieApiV1,NessieApiV2
Base interface for all Nessie-API versions.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()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:
closein interfaceAutoCloseable
-
unwrapClient
Returns the possibly protocol but definitely implementation specific client instance.- Type Parameters:
C- requested/expected client type.- Parameters:
clientType- Expected client type.- Returns:
- an
Optionalwith either the client of the requested type or empty.
-