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 TypeMethodDescriptionread()
Read the persisted datafeed id from the storage.Read the persisted agent base path from the storage.void
Persists the created datafeed id into the storage.void
Persists the created datafeed id and agent base path into the storage.
-
Method Details
-
write
Persists the created datafeed id into the storage.- Parameters:
datafeedId
- the datafeed id to be persisted.
-
write
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
Read the persisted datafeed id from the storage.- Returns:
- The persisted datafeed id.
-
readAgentBasePath
Read the persisted agent base path from the storage.- Returns:
- the persisted agent base path.
-