Class FDBRecordContextConfig

    • Method Detail

      • getMdcContext

        @Nullable
        public Map<String,​String> getMdcContext()
        Get the MDC context used to set additional keys and values when logging.
        Returns:
        the MDC context to use when logging
      • getTimer

        @Nullable
        public FDBStoreTimer getTimer()
        Get the timer to use to instrument events. This is especially useful for tracking and timing operations that interact with the database.
        Returns:
        the timer to use to instrument events
      • getTransactionId

        @Nullable
        public String getTransactionId()
        Get the ID to use for the transaction in FDB logs. See FDBRecordContext for more details.
        Returns:
        the ID to use for the transaction in FDB logs
      • getTransactionTimeoutMillis

        public long getTransactionTimeoutMillis()
        Get the configured transaction timeout time in milliseconds. If set to FDBDatabaseFactory.DEFAULT_TR_TIMEOUT_MILLIS, then the created transaction will use the default from the FDBDatabaseFactory.
        Returns:
        the transaction timeout time in milliseconds
      • areAssertionsEnabled

        public boolean areAssertionsEnabled()
        Returns whether or not internal correctness assertions are enabled.
        Returns:
        whether or not internal correctness assertions are enabled
      • isLogTransaction

        public boolean isLogTransaction()
        Get whether transaction is logged to FDB client logs.
        Returns:
        true if transaction is logged.
      • isTrackOpen

        public boolean isTrackOpen()
        Get whether open context is tracked in the associated FDBDatabase.
        Returns:
        true if context is tracked.
      • isSaveOpenStackTrace

        public boolean isSaveOpenStackTrace()
        Get whether stack trace is recorded when context is opened.
        Returns:
        true if stack trace is generated.
      • toBuilder

        @Nonnull
        public FDBRecordContextConfig.Builder toBuilder()
        Convert the current configuration to a builder. This will set all options in the builder to their current values in this configuration object.
        Returns:
        a new builder based on this configuration object