public class WireStorePool extends Object
Modifier and Type | Method and Description |
---|---|
WireStore |
acquire(int cycle,
long epoch,
boolean createIfAbsent) |
void |
close() |
boolean |
isEmpty() |
NavigableSet<Long> |
listCyclesBetween(int lowerCycle,
int upperCycle)
list cycles between ( inclusive )
|
int |
nextCycle(int currentCycle,
TailerDirection direction) |
void |
release(CommonStore store) |
static WireStorePool |
withSupplier(WireStoreSupplier supplier,
StoreFileListener storeFileListener) |
@NotNull public static WireStorePool withSupplier(@NotNull WireStoreSupplier supplier, StoreFileListener storeFileListener)
public void close()
@Nullable @Nullable public WireStore acquire(int cycle, long epoch, boolean createIfAbsent)
public int nextCycle(int currentCycle, @NotNull TailerDirection direction) throws ParseException
ParseException
public void release(@NotNull CommonStore store)
public NavigableSet<Long> listCyclesBetween(int lowerCycle, int upperCycle) throws ParseException
lowerCycle
- the lower cycleupperCycle
- the upper cycleParseException
public boolean isEmpty()
Copyright © 2018. All rights reserved.