Package org.apache.cassandra.schema
Class DefaultSchemaUpdateHandlerFactory
- java.lang.Object
-
- org.apache.cassandra.schema.DefaultSchemaUpdateHandlerFactory
-
- All Implemented Interfaces:
SchemaUpdateHandlerFactory
public class DefaultSchemaUpdateHandlerFactory extends java.lang.Object implements SchemaUpdateHandlerFactory
-
-
Field Summary
Fields Modifier and Type Field Description static SchemaUpdateHandlerFactory
instance
-
Constructor Summary
Constructors Constructor Description DefaultSchemaUpdateHandlerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SchemaUpdateHandler
getSchemaUpdateHandler(boolean online, java.util.function.BiConsumer<SchemaTransformation.SchemaTransformationResult,java.lang.Boolean> updateSchemaCallback)
A factory which provides the appropriate schema update handler.
-
-
-
Field Detail
-
instance
public static final SchemaUpdateHandlerFactory instance
-
-
Method Detail
-
getSchemaUpdateHandler
public SchemaUpdateHandler getSchemaUpdateHandler(boolean online, java.util.function.BiConsumer<SchemaTransformation.SchemaTransformationResult,java.lang.Boolean> updateSchemaCallback)
Description copied from interface:SchemaUpdateHandlerFactory
A factory which provides the appropriate schema update handler. The actual implementation may be different for different run modes (client, tool, daemon).- Specified by:
getSchemaUpdateHandler
in interfaceSchemaUpdateHandlerFactory
- Parameters:
online
- whether schema update handler should work online and be aware of the other nodes (when in daemon mode)updateSchemaCallback
- callback which will be called right after the shared schema is updated
-
-