O - distributed primitive options typepublic abstract class DistributedPrimitiveOptions<O extends DistributedPrimitiveOptions<O>> extends Object
| Constructor and Description | 
|---|
DistributedPrimitiveOptions(DistributedPrimitive.Type type)  | 
| Modifier and Type | Method and Description | 
|---|---|
ApplicationId | 
applicationId()
Returns the application identifier. 
 | 
boolean | 
meteringEnabled()
Returns if metering is enabled. 
 | 
String | 
name()
Returns the name of the primitive. 
 | 
boolean | 
partitionsDisabled()
Returns if partitions are disabled. 
 | 
boolean | 
readOnly()
Returns if updates are disabled. 
 | 
boolean | 
relaxedReadConsistency()
Returns if consistency is relaxed for read operations. 
 | 
RevisionType | 
revisionType()
Returns the primitive revision type. 
 | 
Serializer | 
serializer()
Returns the serializer. 
 | 
DistributedPrimitive.Type | 
type()
Returns the primitive type. 
 | 
Version | 
version()
Returns the primitive version. 
 | 
O | 
withApplicationId(ApplicationId applicationId)
Sets the application id that owns this primitive. 
 | 
O | 
withName(String name)
Sets the primitive name. 
 | 
O | 
withRelaxedReadConsistency()
Turns on relaxed consistency for read operations. 
 | 
O | 
withRevisionType(RevisionType revisionType)
Sets the primitive revision type. 
 | 
O | 
withSerializer(Serializer serializer)
Sets the serializer to use for transcoding info held in the primitive. 
 | 
O | 
withUpdatesDisabled()
Disables state changing operations on the returned distributed primitive. 
 | 
O | 
withVersion(Version version)
Sets the primitive version. 
 | 
public DistributedPrimitiveOptions(DistributedPrimitive.Type type)
public O withName(String name)
name - primitive namepublic O withSerializer(Serializer serializer)
serializer - serializerpublic O withApplicationId(ApplicationId applicationId)
applicationId - application identifierpublic O withVersion(Version version)
version - the primitive versionpublic O withRevisionType(RevisionType revisionType)
revisionType - the revision typepublic O withUpdatesDisabled()
public O withRelaxedReadConsistency()
public final boolean meteringEnabled()
true if yes; false otherwisepublic final boolean partitionsDisabled()
true if yes; false otherwisepublic final boolean readOnly()
true if yes; false otherwisepublic final boolean relaxedReadConsistency()
true if yes; false otherwisepublic final Serializer serializer()
public final ApplicationId applicationId()
public final String name()
public final DistributedPrimitive.Type type()
public final Version version()
public RevisionType revisionType()