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 Summary
ConstructorDescriptionOnDiskDatafeedIdRepository
(com.symphony.bdk.core.config.model.BdkConfig config) -
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.
-
Constructor Details
-
OnDiskDatafeedIdRepository
public OnDiskDatafeedIdRepository(com.symphony.bdk.core.config.model.BdkConfig config)
-
-
Method Details
-
write
Persists the created datafeed id into the storage.- Specified by:
write
in interfaceDatafeedIdRepository
- Parameters:
datafeedId
- the datafeed id to be persisted.
-
write
Description copied from interface:DatafeedIdRepository
Persists the created datafeed id and agent base path into the storage.- Specified by:
write
in interfaceDatafeedIdRepository
- 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.- Specified by:
read
in interfaceDatafeedIdRepository
- Returns:
- The persisted datafeed id.
-
readAgentBasePath
Description copied from interface:DatafeedIdRepository
Read the persisted agent base path from the storage.- Specified by:
readAgentBasePath
in interfaceDatafeedIdRepository
- Returns:
- the persisted agent base path.
-