Interface AtlasDbFactory


  • public interface AtlasDbFactory
    • Field Detail

      • log

        static final com.palantir.logsafe.logger.SafeLogger log
      • NO_OP_FAST_FORWARD_TIMESTAMP

        static final long NO_OP_FAST_FORWARD_TIMESTAMP
        See Also:
        Constant Field Values
      • DEFAULT_INITIALIZE_ASYNC

        static final boolean DEFAULT_INITIALIZE_ASYNC
        See Also:
        Constant Field Values
      • THROWING_FRESH_TIMESTAMP_SOURCE

        static final java.util.function.LongSupplier THROWING_FRESH_TIMESTAMP_SOURCE
    • Method Detail

      • getType

        java.lang.String getType()
      • createRawKeyValueService

        KeyValueService createRawKeyValueService​(MetricsManager metricsManager,
                                                 KeyValueServiceConfig config,
                                                 com.palantir.refreshable.Refreshable<java.util.Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
                                                 java.util.Optional<LeaderConfig> leaderConfig,
                                                 java.util.Optional<java.lang.String> namespace,
                                                 java.util.function.LongSupplier freshTimestampSource,
                                                 boolean initializeAsync)
        Creates a KeyValueService instance of type according to the config parameter.
        Parameters:
        config - Configuration file.
        runtimeConfig - Runtime configuration file.
        leaderConfig - If the implementation supports it, the optional leader configuration.
        namespace - If the implementation supports it, this is the namespace to use when the namespace in config is absent. If both are present, they must match.
        freshTimestampSource - If present, a source of fresh timestamps, which may be relevant for some KVS operations.
        initializeAsync - If the implementations supports it, and initializeAsync is true, the KVS will initialize asynchronously when synchronous initialization fails.
        Returns:
        The requested KeyValueService instance
      • createManagedTimestampService

        com.palantir.timestamp.ManagedTimestampService createManagedTimestampService​(KeyValueService rawKvs,
                                                                                     java.util.Optional<TableReference> tableReferenceOverride,
                                                                                     boolean initializeAsync)
      • createTimestampStoreInvalidator

        default com.palantir.timestamp.TimestampStoreInvalidator createTimestampStoreInvalidator​(KeyValueService rawKvs,
                                                                                                 java.util.Optional<TableReference> tableReferenceOverride)