Class AdminProvider.Builder

java.lang.Object
org.apache.juneau.rest.server.ops.AdminProvider.Builder
Enclosing class:
AdminProvider

public static class AdminProvider.Builder extends Object
Builder for AdminProvider instances.
  • Constructor Details

  • Method Details

    • cacheFlush

      Registers a cache-flush hook under a name.

      The hook is invoked synchronously when POST /admin/cache/flush is called (with no names parameter, or with a names parameter that includes this name).

      Parameters:
      name - The hook name. Must not be null or blank.
      hook - The hook. Must not be null.
      Returns:
      This object.
    • cacheFlushAll

      Registers multiple cache-flush hooks at once.
      Parameters:
      hooks - The hooks, keyed by registration name. Can be null (no-op).
      Returns:
      This object.
    • threadNamePrefixExclude

      Replaces the thread-name-prefix exclude list.

      Threads whose name starts with any of the supplied prefixes are omitted from the /admin/threads output. Pass an empty array to disable filtering entirely.

      Parameters:
      values - The thread-name prefixes to exclude. Can be null (equivalent to an empty array — disables filtering); null or empty elements are skipped.
      Returns:
      This object.
    • build

      public AdminProvider build()
      Builds an AdminProvider instance.
      Returns:
      A configured instance.