Class DelayableValidateCallbackHandler
java.lang.Object
org.apache.kafka.common.security.authenticator.DelayableValidateCallbackHandler
- All Implemented Interfaces:
CallbackHandler, org.apache.kafka.common.security.auth.AuthenticateCallbackHandler
public class DelayableValidateCallbackHandler
extends Object
implements org.apache.kafka.common.security.auth.AuthenticateCallbackHandler
This class is an Oauth callback handler with artificially added delay in the handling. This class provide two knobs -
1. delayMs - time for which handler will sleep while handling a request
2. numDelayConnections - number of initial requests for which the delay should be added. After handling
`numDelayConnections` requests handler will not add delay to handling.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DelayableValidateCallbackHandler
public DelayableValidateCallbackHandler()
-
-
Method Details
-
configure
public void configure(Map<String, ?> configs, String saslMechanism, List<AppConfigurationEntry> jaasConfigEntries) - Specified by:
configurein interfaceorg.apache.kafka.common.security.auth.AuthenticateCallbackHandler
-
handle
- Specified by:
handlein interfaceCallbackHandler- Throws:
IOExceptionUnsupportedCallbackException
-
close
public void close()- Specified by:
closein interfaceorg.apache.kafka.common.security.auth.AuthenticateCallbackHandler
-