Class PrimitiveConfig<C extends PrimitiveConfig<C>>

java.lang.Object
io.atomix.primitive.config.PrimitiveConfig<C>
All Implemented Interfaces:
io.atomix.utils.config.Config, io.atomix.utils.config.NamedConfig<C>, io.atomix.utils.config.TypedConfig<PrimitiveType>

public abstract class PrimitiveConfig<C extends PrimitiveConfig<C>>
extends Object
implements io.atomix.utils.config.TypedConfig<PrimitiveType>, io.atomix.utils.config.NamedConfig<C>
Primitive configuration.
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface io.atomix.utils.config.NamedConfig<C extends PrimitiveConfig<C>>
    • setName

      public C setName​(String name)
      Specified by:
      setName in interface io.atomix.utils.config.NamedConfig<C extends PrimitiveConfig<C>>
    • getNamespaceConfig

      public io.atomix.utils.serializer.NamespaceConfig getNamespaceConfig()
      Returns the serializer configuration.
      Returns:
      the serializer configuration
    • setNamespaceConfig

      public C setNamespaceConfig​(io.atomix.utils.serializer.NamespaceConfig namespaceConfig)
      Sets the serializer configuration.
      Parameters:
      namespaceConfig - the serializer configuration
      Returns:
      the primitive configuration
    • getProtocolConfig

      public PrimitiveProtocolConfig getProtocolConfig()
      Returns the protocol configuration.
      Returns:
      the protocol configuration
    • setProtocolConfig

      public C setProtocolConfig​(PrimitiveProtocolConfig protocolConfig)
      Sets the protocol configuration.
      Parameters:
      protocolConfig - the protocol configuration
      Returns:
      the primitive configuration
    • setReadOnly

      public C setReadOnly()
      Sets the primitive to read-only.
      Returns:
      the primitive configuration
    • setReadOnly

      public C setReadOnly​(boolean readOnly)
      Sets whether the primitive is read-only.
      Parameters:
      readOnly - whether the primitive is read-only
      Returns:
      the primitive configuration
    • isReadOnly

      public boolean isReadOnly()
      Returns whether the primitive is read-only.
      Returns:
      whether the primitive is read-only