Class DistributedPrimitiveOptions<O extends DistributedPrimitiveOptions<O>>

    • Method Detail

      • withName

        public O withName​(String name)
        Sets the primitive name.
        Parameters:
        name - primitive name
        Returns:
        this builder
      • withSerializer

        public O withSerializer​(Serializer serializer)
        Sets the serializer to use for transcoding info held in the primitive.
        Parameters:
        serializer - serializer
        Returns:
        this builder
      • withApplicationId

        public O withApplicationId​(ApplicationId applicationId)
        Sets the application id that owns this primitive.
        Parameters:
        applicationId - application identifier
        Returns:
        this builder
      • withVersion

        public O withVersion​(Version version)
        Sets the primitive version.
        Parameters:
        version - the primitive version
        Returns:
        this builder
      • withRevisionType

        public O withRevisionType​(RevisionType revisionType)
        Sets the primitive revision type.
        Parameters:
        revisionType - the revision type
        Returns:
        this builder
      • withUpdatesDisabled

        public O withUpdatesDisabled()
        Disables state changing operations on the returned distributed primitive.
        Returns:
        this builder
      • withRelaxedReadConsistency

        public O withRelaxedReadConsistency()
        Turns on relaxed consistency for read operations.
        Returns:
        this builder
      • meteringEnabled

        public final boolean meteringEnabled()
        Returns if metering is enabled.
        Returns:
        true if yes; false otherwise
      • partitionsDisabled

        public final boolean partitionsDisabled()
        Returns if partitions are disabled.
        Returns:
        true if yes; false otherwise
      • readOnly

        public final boolean readOnly()
        Returns if updates are disabled.
        Returns:
        true if yes; false otherwise
      • relaxedReadConsistency

        public final boolean relaxedReadConsistency()
        Returns if consistency is relaxed for read operations.
        Returns:
        true if yes; false otherwise
      • serializer

        public final Serializer serializer()
        Returns the serializer.
        Returns:
        serializer
      • applicationId

        public final ApplicationId applicationId()
        Returns the application identifier.
        Returns:
        application id
      • name

        public final String name()
        Returns the name of the primitive.
        Returns:
        primitive name
      • version

        public final Version version()
        Returns the primitive version.
        Returns:
        the primitive version
      • revisionType

        public RevisionType revisionType()
        Returns the primitive revision type.
        Returns:
        the primitive revision type