Interface DatafeedIdRepository

All Known Implementing Classes:
OnDiskDatafeedIdRepository

@API(status=STABLE) public interface DatafeedIdRepository
A repository interface for storing a datafeed id. By using DatafeedLoopV1, the created datafeed id and agent base url should be persisted manually on the BDK side.
  • Method Summary

    Modifier and Type
    Method
    Description
    Read the persisted datafeed id from the storage.
    Read the persisted agent base path from the storage.
    void
    write(String datafeedId)
    Persists the created datafeed id into the storage.
    void
    write(String datafeedId, String agentBasePath)
    Persists the created datafeed id and agent base path into the storage.
  • Method Details

    • write

      void write(String datafeedId)
      Persists the created datafeed id into the storage.
      Parameters:
      datafeedId - the datafeed id to be persisted.
    • write

      void write(String datafeedId, String agentBasePath)
      Persists the created datafeed id and agent base path into the storage.
      Parameters:
      datafeedId - the datafeed id to be persisted.
      agentBasePath - the agent base path (i.e. scheme, host, port, context path) to be persisted.
    • read

      Optional<String> read()
      Read the persisted datafeed id from the storage.
      Returns:
      The persisted datafeed id.
    • readAgentBasePath

      Optional<String> readAgentBasePath()
      Read the persisted agent base path from the storage.
      Returns:
      the persisted agent base path.