Interface PrimitiveType<B extends PrimitiveBuilder,​C extends PrimitiveConfig,​P extends SyncPrimitive>

All Superinterfaces:
io.atomix.utils.ConfiguredType<C>, io.atomix.utils.Named, io.atomix.utils.NamedType, io.atomix.utils.Type

public interface PrimitiveType<B extends PrimitiveBuilder,​C extends PrimitiveConfig,​P extends SyncPrimitive>
extends io.atomix.utils.ConfiguredType<C>
Primitive type.
  • Method Summary

    Modifier and Type Method Description
    default io.atomix.utils.serializer.Namespace namespace()
    Returns the primitive type namespace.
    B newBuilder​(String primitiveName, C config, PrimitiveManagementService managementService)
    Returns a new primitive builder.
    C newConfig()
    Returns a new instance of the primitive configuration.
    PrimitiveService newService​(ServiceConfig config)
    Creates a new service instance from the given configuration.

    Methods inherited from interface io.atomix.utils.Named

    name

    Methods inherited from interface io.atomix.utils.Type

    name
  • Method Details

    • namespace

      default io.atomix.utils.serializer.Namespace namespace()
      Returns the primitive type namespace.
      Returns:
      the primitive type namespace
    • newConfig

      C newConfig()
      Returns a new instance of the primitive configuration.
      Specified by:
      newConfig in interface io.atomix.utils.ConfiguredType<B extends PrimitiveBuilder>
      Returns:
      a new instance of the primitive configuration
    • newBuilder

      B newBuilder​(String primitiveName, C config, PrimitiveManagementService managementService)
      Returns a new primitive builder.
      Parameters:
      primitiveName - the primitive name
      config - the primitive configuration
      managementService - the primitive management service
      Returns:
      a new primitive builder
    • newService

      PrimitiveService newService​(ServiceConfig config)
      Creates a new service instance from the given configuration.
      Parameters:
      config - the service configuration
      Returns:
      the service instance