public class AutoBatcher extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
AutoBatcher.IdBatchSupplier |
Constructor and Description |
---|
AutoBatcher(int batchSize,
long validity,
AutoBatcher.IdBatchSupplier idGenerator) |
Modifier and Type | Method and Description |
---|---|
long |
newId()
Return next ID from current batch or get new batch from supplier if
current batch is spent or expired.
|
public AutoBatcher(int batchSize, long validity, AutoBatcher.IdBatchSupplier idGenerator)
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.