Class OnDiskDatafeedIdRepository

java.lang.Object
com.symphony.bdk.core.service.datafeed.impl.OnDiskDatafeedIdRepository
All Implemented Interfaces:
DatafeedIdRepository

@API(status=INTERNAL) public class OnDiskDatafeedIdRepository extends Object implements DatafeedIdRepository
The implementation of DatafeedIdRepository interface for persisting a datafeed id on disk.
  • Constructor Details

    • OnDiskDatafeedIdRepository

      public OnDiskDatafeedIdRepository(com.symphony.bdk.core.config.model.BdkConfig config)
  • Method Details

    • write

      public void write(String datafeedId)
      Persists the created datafeed id into the storage.
      Specified by:
      write in interface DatafeedIdRepository
      Parameters:
      datafeedId - the datafeed id to be persisted.
    • write

      public void write(String datafeedId, String agentBasePath)
      Description copied from interface: DatafeedIdRepository
      Persists the created datafeed id and agent base path into the storage.
      Specified by:
      write in interface DatafeedIdRepository
      Parameters:
      datafeedId - the datafeed id to be persisted.
      agentBasePath - the agent base path (i.e. scheme, host, port, context path) to be persisted.
    • read

      public Optional<String> read()
      Read the persisted datafeed id from the storage.
      Specified by:
      read in interface DatafeedIdRepository
      Returns:
      The persisted datafeed id.
    • readAgentBasePath

      public Optional<String> readAgentBasePath()
      Description copied from interface: DatafeedIdRepository
      Read the persisted agent base path from the storage.
      Specified by:
      readAgentBasePath in interface DatafeedIdRepository
      Returns:
      the persisted agent base path.