public abstract class AtomicSemaphoreBuilder extends PrimitiveBuilder<AtomicSemaphoreBuilder,AtomicSemaphoreConfig,AtomicSemaphore> implements ProxyCompatibleBuilder<AtomicSemaphoreBuilder>
| Modifier and Type | Method and Description |
|---|---|
AtomicSemaphoreBuilder |
withInitialCapacity(int permits)
Sets the semaphore's initial capacity.
|
AtomicSemaphoreBuilder |
withProtocol(ProxyProtocol protocol)
Configures the builder with a state machine replication protocol.
|
build, buildAsync, withReadOnly, withReadOnly, withSerializerpublic AtomicSemaphoreBuilder withInitialCapacity(int permits)
permits - the initial number of permitspublic AtomicSemaphoreBuilder withProtocol(ProxyProtocol protocol)
ProxyCompatibleBuilderwithProtocol in interface ProxyCompatibleBuilder<AtomicSemaphoreBuilder>protocol - the state machine replication protocolCopyright © 2013–2018. All rights reserved.