public class WireStorePool extends Object implements StoreReleasable
Modifier and Type | Method and Description |
---|---|
@Nullable 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,
@NotNull TailerDirection direction) |
void |
release(@NotNull CommonStore store) |
static @NotNull WireStorePool |
withSupplier(@NotNull WireStoreSupplier supplier,
StoreFileListener storeFileListener) |
@NotNull public static @NotNull WireStorePool withSupplier(@NotNull @NotNull WireStoreSupplier supplier, StoreFileListener storeFileListener)
public void close()
@Nullable public @Nullable WireStore acquire(int cycle, long epoch, boolean createIfAbsent)
public int nextCycle(int currentCycle, @NotNull @NotNull TailerDirection direction) throws ParseException
ParseException
public void release(@NotNull @NotNull CommonStore store)
release
in interface StoreReleasable
store
- the store
to releasepublic NavigableSet<Long> listCyclesBetween(int lowerCycle, int upperCycle) throws ParseException
lowerCycle
- the lower cycleupperCycle
- the upper cycleParseException
public boolean isEmpty()
Copyright © 2020. All rights reserved.