Package io.atomix.primitive
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.Namespacenamespace()Returns the primitive type namespace.BnewBuilder(String primitiveName, C config, PrimitiveManagementService managementService)Returns a new primitive builder.CnewConfig()Returns a new instance of the primitive configuration.PrimitiveServicenewService(ServiceConfig config)Creates a new service instance from the given configuration.
-
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:
newConfigin interfaceio.atomix.utils.ConfiguredType<B extends PrimitiveBuilder>- Returns:
- a new instance of the primitive configuration
-
newBuilder
Returns a new primitive builder.- Parameters:
primitiveName- the primitive nameconfig- the primitive configurationmanagementService- the primitive management service- Returns:
- a new primitive builder
-
newService
Creates a new service instance from the given configuration.- Parameters:
config- the service configuration- Returns:
- the service instance
-