Interface ISettingProvider

All Superinterfaces:
org.pf4j.ExtensionPoint

public interface ISettingProvider extends org.pf4j.ExtensionPoint
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    This method will be called during broker shutdown
    <R> R
    provide(Setting setting, String tenantId)
    Provide a value of the setting for given tenant.
  • Method Details

    • provide

      <R> R provide(Setting setting, String tenantId)
      Provide a value of the setting for given tenant. The method will be called by BifroMQ working thread, so it's expected to be performant and non-blocking otherwise the overall performance will be greatly impacted. It's allowed to return null to reuse the current setting value, in case the value could not be determined in timely manner.
      Parameters:
      setting - the setting for the client
      tenantId - the id of the calling tenant
      Returns:
      the setting value for the client or null
    • close

      default void close()
      This method will be called during broker shutdown