Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
data class ConfigError(val displayMessage: String) : ConnectorError

A ConfigError means there is something wrong with the user's connector configuration or any other error for which the connector informs the platform that the error is not transient in nature and thus to not bother retrying.

Link copied to clipboard
sealed interface ConnectorError

Each ConnectorError subtype corresponds to a AirbyteErrorTraceMessage.FailureType.

Link copied to clipboard
@Singleton
@ConfigurationProperties(value = "airbyte.connector.exception-classifiers.default")
class DefaultExceptionClassifier(@Value(value = "${airbyte.connector.exception-classifiers.default.order:1}") val orderValue: Int) : ExceptionClassifier

Default implementation of ExceptionClassifier.

Link copied to clipboard
interface ExceptionClassifier : Ordered
Link copied to clipboard
@Singleton
class ExceptionHandler(val classifiers: List<ExceptionClassifier>)

ExceptionHandler applies all available ExceptionClassifier implementations in sequence.

Link copied to clipboard
@DefaultImplementation(value = StdoutOutputConsumer::class)
abstract class OutputConsumer(clock: Clock) : Consumer<AirbyteMessage> , AutoCloseable

Emits the AirbyteMessage instances produced by the connector.

Link copied to clipboard
class RecordTemplate(val prefix: ByteArray, val suffix: ByteArray)
Link copied to clipboard
@Singleton
@Requires(property = "airbyte.connector.exception-classifiers.regex.rules")
class RegexExceptionClassifier(@Value(value = "${airbyte.connector.exception-classifiers.regex.order:10}") val orderValue: Int, val rules: List<RegexExceptionClassifierRule>) : RuleBasedExceptionClassifier<RegexExceptionClassifierRule>

ExceptionClassifier implementation based on regexes applied to the exception message.

Link copied to clipboard
@EachProperty(value = "airbyte.connector.exception-classifiers.regex.rules", list = true)
class RegexExceptionClassifierRule(@Parameter val ordinal: Int) : RuleBasedExceptionClassifier.Rule

Micronaut configuration object for RuleBasedExceptionClassifier rules.

Link copied to clipboard

Convenience interface for rules-based ExceptionClassifier implementations.

Link copied to clipboard

A simple OutputConsumer such as standard output or buffering test output consumer.

Link copied to clipboard
@Singleton
@Secondary
class StdoutOutputConsumer(val stdout: PrintStream, clock: Clock, @Value(value = "${airbyte.connector.output.buffer-byte-size-threshold-for-flush:4096}") val bufferByteSizeThresholdForFlush: Int) : StandardOutputConsumer

Default implementation of OutputConsumer.

Link copied to clipboard
data class SystemError(val displayMessage: String?) : ConnectorError

A SystemError means there is something wrong with the connector.

Link copied to clipboard
data class TransientError(val displayMessage: String) : ConnectorError

A TransientError means there is something wrong with the user's source or any other error for which the connector informs the platform that the error is transient in nature.

Properties

Link copied to clipboard

Configuration properties prefix for StdoutOutputConsumer.

Link copied to clipboard
Link copied to clipboard

Common Micronaut property prefix for all exception classifiers.

Link copied to clipboard