public interface SchemaUpdateHandler
Modifier and Type | Method and Description |
---|---|
SchemaTransformation.SchemaTransformationResult |
apply(SchemaTransformation transformation,
boolean local)
Applies schema transformation in the underlying storage and synchronizes with other nodes.
|
Awaitable |
clear()
Marks the local schema to be cleared and refreshed.
|
void |
reset(boolean local)
Resets the schema either by reloading data from the local storage or from the other nodes.
|
void |
start()
Starts actively synchronizing schema with the rest of the cluster.
|
boolean |
waitUntilReady(java.time.Duration timeout)
Waits until the schema update handler is ready and returns the result.
|
void start()
waitUntilReady(Duration)
.boolean waitUntilReady(java.time.Duration timeout)
false
it
means that readiness could not be achieved within the specified period of time. The method can be used just to
check if schema is ready by passing Duration.ZERO
as the timeout - in such case it returns immediately.timeout
- the maximum time to wait for schema readinessSchemaTransformation.SchemaTransformationResult apply(SchemaTransformation transformation, boolean local)
transformation
- schema transformation to be performedlocal
- if true, the caller does not require synchronizing schema with other nodes - in practise local is
used only in some testsvoid reset(boolean local)
local
- whether we should reset with locally stored schema or fetch the schema from other nodesAwaitable clear()
Copyright © 2009-2022 The Apache Software Foundation