public class NeverHoleFillPolicy extends Object implements IHoleFillPolicy
Created by mwei on 4/6/17.
Constructor and Description |
---|
NeverHoleFillPolicy(int waitMs)
Create a new neverHoleFillPolicy with the given wait time.
|
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 NeverHoleFillPolicy(int waitMs)
waitMs
- The time to wait, in milliseconds.@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.