Package com.io7m.coffeepick.api

# Interface CoffeePickClientProviderType

All Known Implementing Classes:
  `CoffeePickClients`

    public interface CoffeePickClientProviderType

A provider of CoffeePick clients.

- ## Method Summary

  Modifier and Type | Method | Description
  --- | --- | ---
  `CoffeePickClientType` | `newClient​(CoffeePickParsersType parsers, CoffeePickSerializersType serializers, java.nio.file.Path base_directory, java.net.http.HttpClient http)` | Create a new client.
  `default CoffeePickClientType` | `newClient​(java.nio.file.Path base_directory)` | Create a new client.

- ## Method Details

  - ### newClient

    default CoffeePickClientType newClient​(java.nio.file.Path base_directory) throws java.io.IOException
    Create a new client. The client will use the given directory for configuration data and inventory.
    Parameters:
      `base_directory` - The base directory
    Returns:
      A new client
    Throws:
      `java.io.IOException` - On errors

  - ### newClient

    CoffeePickClientType newClient​(CoffeePickParsersType parsers, CoffeePickSerializersType serializers, java.nio.file.Path base_directory, java.net.http.HttpClient http) throws java.io.IOException
    Create a new client. The client will use the given directory for configuration data and inventory.
    Parameters:
      `parsers` - The parser provider
      `serializers` - The serializer provider
      `base_directory` - The base directory
      `http` - The HTTP client that will be used
    Returns:
      A new client
    Throws:
      `java.io.IOException` - On errors