Class InterfaceAudience

java.lang.Object
org.apache.kafka.common.annotation.InterfaceAudience

@Public public class InterfaceAudience extends Object
Annotation to inform users of the intended audience of a particular class. The audience can be InterfaceAudience.Public or InterfaceAudience.Private; the annotations target TYPE only — methods and fields inherit the audience of their declaring class, and packages are intentionally not a granularity the checker enforces. Audience is orthogonal to InterfaceStability: a class may be public-audience and evolving-stability at the same time.

If no audience annotation is present on a class, it is assumed to be InterfaceAudience.Private (internal). External code must not depend on classes without an explicit InterfaceAudience.Public annotation.

  • Constructor Details

    • InterfaceAudience

      public InterfaceAudience()