public static interface LightIdProvider.Loader
| Modifier and Type | Method and Description |
|---|---|
@NotNull List<LightIdProvider.Segment> |
preload(int block)
preload all LightId of current block.
|
@NotNull LightIdProvider.Segment |
require(@NotNull String name,
int block,
int count,
boolean exact)
Returns the count of sequence, not less than the required count (can be more) sequence.
|
@NotNull @NotNull LightIdProvider.Segment require(@NotNull @NotNull String name, int block, int count, boolean exact)
name - Id nameblock - block aka. data center in db clustercount - the count to require.exact - return exact or more than the count.NoSuchElementException - if name not exist.@NotNull @NotNull List<LightIdProvider.Segment> preload(int block)
block - load all or throw errors if not exist.Copyright © 2024. All rights reserved.