protected class AbstractWALRoller.RollController extends Object
Modifier and Type | Field and Description |
---|---|
private long |
lastRollTime |
private AtomicBoolean |
rollRequest |
private WAL |
wal |
Constructor and Description |
---|
RollController(WAL wal) |
Modifier and Type | Method and Description |
---|---|
boolean |
isRollRequested() |
boolean |
needsPeriodicRoll(long now) |
boolean |
needsRoll(long now) |
void |
requestRoll() |
Map<byte[],List<byte[]>> |
rollWal(long now) |
private final AtomicBoolean rollRequest
private long lastRollTime
RollController(WAL wal)
public void requestRoll()
public Map<byte[],List<byte[]>> rollWal(long now) throws IOException
IOException
public boolean isRollRequested()
public boolean needsPeriodicRoll(long now)
public boolean needsRoll(long now)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.