public class ReadWaitHoleFillPolicy extends Object implements IHoleFillPolicy
Created by mwei on 4/6/17.
Constructor and Description |
---|
ReadWaitHoleFillPolicy(Duration holeFillThreshold,
Duration retryWaitThreshold)
Create a ReadWaitHoleFillPolicy with the given wait times
and retries.
|
Modifier and Type | Method and Description |
---|---|
ILogData |
peekUntilHoleFillRequired(long address,
Function<Long,ILogData> peekFunction)
Apply the given peek function until hole filling is required or
committed data is returned.
|
public ReadWaitHoleFillPolicy(Duration holeFillThreshold, Duration retryWaitThreshold)
holeFillThreshold
- The amount of time to wait before retrying.retryWaitThreshold
- The number of retries to apply before requiring a hole fill.@Nonnull public ILogData peekUntilHoleFillRequired(long address, Function<Long,ILogData> peekFunction) throws HoleFillRequiredException
peekUntilHoleFillRequired
in interface IHoleFillPolicy
address
- The address to apply the function.peekFunction
- The function to use to peek data
from the log.HoleFillRequiredException
- If hole filling is required.Copyright © 2019 CorfuDB. All rights reserved.