Package org.springframework.kafka.event
Class ConsumerRetryAuthEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.kafka.event.KafkaEvent
org.springframework.kafka.event.ConsumerRetryAuthEvent
- All Implemented Interfaces:
Serializable
An event published when authentication or authorization of a consumer fails and
is being retried. Contains the reason for this event.
- Since:
- 3.0
- Author:
- Daniel Gentes
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Reasons for retrying auth a consumer. -
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionConsumerRetryAuthEvent
(Object source, Object container, ConsumerRetryAuthEvent.Reason reason) Construct an instance with the provided source and container. -
Method Summary
Methods inherited from class org.springframework.kafka.event.KafkaEvent
getContainer, getSource
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
ConsumerRetryAuthEvent
public ConsumerRetryAuthEvent(Object source, Object container, ConsumerRetryAuthEvent.Reason reason) Construct an instance with the provided source and container.- Parameters:
source
- the container instance that generated the event.container
- the container or the parent container if the container is a child.reason
- the reason.
-
-
Method Details
-
getReason
Return the reason for the auth failure.- Returns:
- the reason.
-
toString
- Overrides:
toString
in classEventObject
-