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.