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