Package reactor.blockhound.integration
Interface BlockHoundIntegration
- All Superinterfaces:
Comparable<BlockHoundIntegration>
- All Known Implementing Classes:
LoggingIntegration,ReactorIntegration,RxJava2Integration,StandardOutputIntegration
An interface that defines the contract for the BlockHound integrations.
applyTo(BlockHound.Builder) will receive an instance
of the builder that is being installed.
One can override Comparable.compareTo(Object) to ensure the order in case
one needs to run an integration before or after another.-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(BlockHound.Builder builder) Lets an integration apply the customizations (seeBlockHound.Builder) before BlockHound is installed.default intdefault intReturns the default priority level for this integration.
-
Method Details
-
applyTo
Lets an integration apply the customizations (seeBlockHound.Builder) before BlockHound is installed.- Parameters:
builder- an instance ofBlockHound.Builderthat is being installed
-
getPriority
default int getPriority()Returns the default priority level for this integration. The priority level controls the ordering of theBlockHoundIntegrationplugins. Plugins which do not provide a priority are sorted using natural ordering, and theirapplyTo(BlockHound.Builder)method will be called using the order in which the plugins are loaded.- Returns:
- The
BlockHoundIntegrationplugin priority, 0 by default. - See Also:
-
compareTo
- Specified by:
compareToin interfaceComparable<BlockHoundIntegration>
-