public static class OpportunisticContainerAllocator.ContainerIdGenerator extends Object
| Modifier and Type | Field and Description | 
|---|---|
| protected AtomicLong | containerIdCounter | 
| Constructor and Description | 
|---|
| ContainerIdGenerator() | 
| Modifier and Type | Method and Description | 
|---|---|
| long | generateContainerId()Generates a new long value. | 
| void | resetContainerIdCounter(long containerIdStart)This method can reset the generator to a specific value. | 
protected volatile AtomicLong containerIdCounter
public void resetContainerIdCounter(long containerIdStart)
containerIdStart - containerIdpublic long generateContainerId()
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.