B - builder typeP - primitive typepublic abstract class PrimitiveBuilder<B extends PrimitiveBuilder<B,C,P>,C extends PrimitiveConfig,P extends SyncPrimitive> extends Object implements Builder<P>
| Constructor and Description |
|---|
PrimitiveBuilder(PrimitiveType type,
String name,
C config,
PrimitiveManagementService managementService) |
| Modifier and Type | Method and Description |
|---|---|
P |
build()
Constructs an instance of the distributed primitive.
|
abstract CompletableFuture<P> |
buildAsync()
Constructs an instance of the asynchronous primitive.
|
B |
withReadOnly()
Sets the primitive to read-only.
|
B |
withReadOnly(boolean readOnly)
Sets whether the primitive is read-only.
|
B |
withSerializer(Serializer serializer)
Sets the primitive serializer.
|
public PrimitiveBuilder(PrimitiveType type, String name, C config, PrimitiveManagementService managementService)
public B withSerializer(Serializer serializer)
serializer - the primitive serializerpublic B withReadOnly()
public B withReadOnly(boolean readOnly)
readOnly - whether the primitive is read-onlypublic P build()
build in interface Builder<P extends SyncPrimitive>public abstract CompletableFuture<P> buildAsync()
Copyright © 2013–2018. All rights reserved.