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 long
DEFAULT_REWIND_TIME_IN_SECONDS
-
Constructor Summary
Constructors Constructor Description HybridStoreConfigImpl(long rewindTimeInSeconds, long offsetLagThresholdToGoOnline, long producerTimestampLagThresholdToGoOnlineInSeconds, DataReplicationPolicy dataReplicationPolicy, BufferReplayPolicy bufferReplayPolicy)
-
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()
long
getRewindTimeInSeconds()
int
hashCode()
void
setDataReplicationPolicy(DataReplicationPolicy dataReplicationPolicy)
void
setOffsetLagThresholdToGoOnline(long offsetLagThresholdToGoOnline)
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
-
-
Constructor Detail
-
HybridStoreConfigImpl
public HybridStoreConfigImpl(long rewindTimeInSeconds, long offsetLagThresholdToGoOnline, long producerTimestampLagThresholdToGoOnlineInSeconds, DataReplicationPolicy dataReplicationPolicy, BufferReplayPolicy bufferReplayPolicy)
-
-
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
-
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
-
-