Annotation Interface Ft.Bulkhead

Enclosing class:
Ft

@Retention(CLASS) @Documented @Intercepted @Target(METHOD) public static @interface Ft.Bulkhead
Bulkhead protects a resource that cannot serve unlimited parallel requests.

When the limit of parallel execution is reached, requests are enqueued until the queue length is reached. Once both the limit and queue are full, additional attempts to invoke will end with a failed response with BulkheadException.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Maximal number of parallel requests going through this bulkhead.
    Name for debugging, error reporting, monitoring.
    int
    Maximal number of enqueued requests waiting for processing.
  • Element Details

    • limit

      int limit
      Maximal number of parallel requests going through this bulkhead. When the limit is reached, additional requests are enqueued.
      Returns:
      maximal number of parallel calls, defaults is 10
      Default:
      10
    • queueLength

      int queueLength
      Maximal number of enqueued requests waiting for processing. When the limit is reached, additional attempts to invoke a request will receive a BulkheadException.
      Returns:
      length of the queue
      Default:
      10
    • name

      String name
      Name for debugging, error reporting, monitoring.
      Returns:
      name of this bulkhead
      Default:
      ""