public class SbcListBrokerRemovalsEvent extends SbcEvent
SbcEvent.SbcEventHandlerResult
eventContext, LOG
Constructor and Description |
---|
SbcListBrokerRemovalsEvent(SbcContext context,
kafka.controller.ClusterBalanceManager.BalanceManagerStatusQueryClientCallback<List<kafka.common.BrokerRemovalDescriptionInternal>> cb) |
Modifier and Type | Method and Description |
---|---|
protected SbcEvent.SbcEventHandlerResult |
handleEvent()
The "business logic" of an SbcEvent.
|
protected org.slf4j.event.Level |
logLevel()
Denotes the log level that will be used to log any common logs as part of this event processing.
|
protected void |
respondToClient(org.apache.kafka.common.requests.ApiError error,
SbcEvent.SbcEventHandlerResult result)
This method is invoked when an operation completes (the
SbcEvent.SbcEventHandlerResult does not indicate that any resources are needed
to continue. |
public SbcListBrokerRemovalsEvent(SbcContext context, kafka.controller.ClusterBalanceManager.BalanceManagerStatusQueryClientCallback<List<kafka.common.BrokerRemovalDescriptionInternal>> cb)
protected org.slf4j.event.Level logLevel()
SbcEvent
protected SbcEvent.SbcEventHandlerResult handleEvent()
SbcEvent
handleEvent
in class SbcEvent
protected void respondToClient(org.apache.kafka.common.requests.ApiError error, SbcEvent.SbcEventHandlerResult result)
SbcEvent
SbcEvent.SbcEventHandlerResult
does not indicate that any resources are needed
to continue. Events which need to respond to clients via a client callback will respond here.respondToClient
in class SbcEvent
error
- the ApiError value for success or failure. handleEvent operations which completed normally will have a result of ApiError.NONE.result
- The SbcEventHandlerResult which was returned from SbcEvent.handleEvent()
}.