DestinationCheckerV2

A check operation that is run before the destination is used.

  • Implementors must provide a check method that validates the configuration.

  • Implementors may provide a cleanup method that is run after the check is complete.

  • check should throw an exception if the configuration is invalid.

  • cleanup should not throw exceptions.

  • Implementors should not perform any side effects in the constructor.

  • Implementors should not throw exceptions in the constructor.

  • Implementors should not inject configuration; only use the config passed in check.

Inheritors

Functions

Link copied to clipboard
abstract fun check()
Link copied to clipboard
open fun cleanup()