Package com.linkedin.venice.meta
Class HybridStoreConfigImpl
- java.lang.Object
-
- com.linkedin.venice.meta.HybridStoreConfigImpl
-
- All Implemented Interfaces:
DataModelBackedStructure<StoreHybridConfig>
,HybridStoreConfig
public class HybridStoreConfigImpl extends java.lang.Object implements HybridStoreConfig
A container of Hybrid Store related configurations.
-
-
Field Summary
Fields Modifier and Type Field Description static long
DEFAULT_HYBRID_OFFSET_LAG_THRESHOLD
static long
DEFAULT_HYBRID_TIME_LAG_THRESHOLD
static java.lang.String
DEFAULT_REAL_TIME_TOPIC_NAME
static long
DEFAULT_REWIND_TIME_IN_SECONDS
-
Constructor Summary
Constructors Constructor Description HybridStoreConfigImpl(long rewindTimeInSeconds, long offsetLagThresholdToGoOnline, long producerTimestampLagThresholdToGoOnlineInSeconds, DataReplicationPolicy dataReplicationPolicy, BufferReplayPolicy bufferReplayPolicy)
HybridStoreConfigImpl(long rewindTimeInSeconds, long offsetLagThresholdToGoOnline, long producerTimestampLagThresholdToGoOnlineInSeconds, DataReplicationPolicy dataReplicationPolicy, BufferReplayPolicy bufferReplayPolicy, java.lang.String realTimeTopicName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HybridStoreConfig
clone()
StoreHybridConfig
dataModel()
Return the backed data model.boolean
equals(java.lang.Object o)
BufferReplayPolicy
getBufferReplayPolicy()
DataReplicationPolicy
getDataReplicationPolicy()
long
getOffsetLagThresholdToGoOnline()
long
getProducerTimestampLagThresholdToGoOnlineInSeconds()
java.lang.String
getRealTimeTopicName()
long
getRewindTimeInSeconds()
int
hashCode()
void
setDataReplicationPolicy(DataReplicationPolicy dataReplicationPolicy)
void
setOffsetLagThresholdToGoOnline(long offsetLagThresholdToGoOnline)
void
setRealTimeTopicName(java.lang.String realTimeTopicName)
void
setRewindTimeInSeconds(long rewindTimeInSeconds)
-
-
-
Field Detail
-
DEFAULT_REWIND_TIME_IN_SECONDS
public static final long DEFAULT_REWIND_TIME_IN_SECONDS
- See Also:
- Constant Field Values
-
DEFAULT_HYBRID_TIME_LAG_THRESHOLD
public static final long DEFAULT_HYBRID_TIME_LAG_THRESHOLD
- See Also:
- Constant Field Values
-
DEFAULT_HYBRID_OFFSET_LAG_THRESHOLD
public static final long DEFAULT_HYBRID_OFFSET_LAG_THRESHOLD
- See Also:
- Constant Field Values
-
DEFAULT_REAL_TIME_TOPIC_NAME
public static final java.lang.String DEFAULT_REAL_TIME_TOPIC_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HybridStoreConfigImpl
public HybridStoreConfigImpl(long rewindTimeInSeconds, long offsetLagThresholdToGoOnline, long producerTimestampLagThresholdToGoOnlineInSeconds, DataReplicationPolicy dataReplicationPolicy, BufferReplayPolicy bufferReplayPolicy)
-
HybridStoreConfigImpl
public HybridStoreConfigImpl(long rewindTimeInSeconds, long offsetLagThresholdToGoOnline, long producerTimestampLagThresholdToGoOnlineInSeconds, DataReplicationPolicy dataReplicationPolicy, BufferReplayPolicy bufferReplayPolicy, java.lang.String realTimeTopicName)
-
-
Method Detail
-
getRewindTimeInSeconds
public long getRewindTimeInSeconds()
- Specified by:
getRewindTimeInSeconds
in interfaceHybridStoreConfig
-
getOffsetLagThresholdToGoOnline
public long getOffsetLagThresholdToGoOnline()
- Specified by:
getOffsetLagThresholdToGoOnline
in interfaceHybridStoreConfig
-
setRewindTimeInSeconds
public void setRewindTimeInSeconds(long rewindTimeInSeconds)
- Specified by:
setRewindTimeInSeconds
in interfaceHybridStoreConfig
-
setOffsetLagThresholdToGoOnline
public void setOffsetLagThresholdToGoOnline(long offsetLagThresholdToGoOnline)
- Specified by:
setOffsetLagThresholdToGoOnline
in interfaceHybridStoreConfig
-
getProducerTimestampLagThresholdToGoOnlineInSeconds
public long getProducerTimestampLagThresholdToGoOnlineInSeconds()
- Specified by:
getProducerTimestampLagThresholdToGoOnlineInSeconds
in interfaceHybridStoreConfig
-
getDataReplicationPolicy
public DataReplicationPolicy getDataReplicationPolicy()
- Specified by:
getDataReplicationPolicy
in interfaceHybridStoreConfig
-
setDataReplicationPolicy
public void setDataReplicationPolicy(DataReplicationPolicy dataReplicationPolicy)
- Specified by:
setDataReplicationPolicy
in interfaceHybridStoreConfig
-
getBufferReplayPolicy
public BufferReplayPolicy getBufferReplayPolicy()
- Specified by:
getBufferReplayPolicy
in interfaceHybridStoreConfig
-
getRealTimeTopicName
public java.lang.String getRealTimeTopicName()
- Specified by:
getRealTimeTopicName
in interfaceHybridStoreConfig
-
setRealTimeTopicName
public void setRealTimeTopicName(java.lang.String realTimeTopicName)
- Specified by:
setRealTimeTopicName
in interfaceHybridStoreConfig
-
dataModel
public StoreHybridConfig dataModel()
Description copied from interface:DataModelBackedStructure
Return the backed data model.- Specified by:
dataModel
in interfaceDataModelBackedStructure<StoreHybridConfig>
- Returns:
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
clone
public HybridStoreConfig clone()
- Specified by:
clone
in interfaceHybridStoreConfig
- Overrides:
clone
in classjava.lang.Object
-
-