Class EsbBrokerAdapters

java.lang.Object
com.kingsrook.qqq.esb.management.EsbBrokerAdapters

public final class EsbBrokerAdapters extends Object
Picks the broker adapter for an ESB provider.
  • Method Details

    • forProvider

      public static Optional<EsbBrokerAdapter> forProvider(String providerName)
      The broker adapter for a provider in the QContext's instance - Artemis (Jolokia) or RabbitMQ (management API), per its type, using its managementUrl and management credentials. Empty if the provider has no managementUrl (it then can only browse - see EsbBrokerCapabilities.WITHOUT_MANAGEMENT), or if there's no such provider (or no type on it, or no instance in context). Adapters are cheap (they share one HTTP client), and read the provider's meta-data when made - so get one when needed, rather than keep it.