org.apache.hc.core5.annotation

## Annotation Type Contract

-     @Documented
       @Target(value=TYPE)
       @Retention(value=CLASS)
      public @interface Contract

  Defines behavioral contract enforced at runtime by instances of annotated classes.

- - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `ThreadingBehavior` | `threading` Gets the threading behavior for annotated type.

- - ### Element Detail

    - #### threading

          public abstract ThreadingBehavior threading

      Gets the threading behavior for annotated type.

      The default value is `ThreadingBehavior.UNSAFE`.

      Returns:
        the threading behavior for annotated type.
      Default:
        org.apache.hc.core5.annotation.ThreadingBehavior.UNSAFE

Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.