public class PersistRemoveApiStateListener extends java.lang.Object implements BrokerRemovalProgressListener
BrokerRemovalProgressListener
that
persists all state updates for a single broker removal operation to diskConstructor and Description |
---|
PersistRemoveApiStateListener(ApiStatePersistenceStore persistenceStore) |
Modifier and Type | Method and Description |
---|---|
void |
onProgressChanged(int brokerId,
BrokerRemovalStateMachine.BrokerRemovalState state,
java.lang.Exception e)
Called whenever the state of the removal operation changes.
|
public PersistRemoveApiStateListener(ApiStatePersistenceStore persistenceStore)
public void onProgressChanged(int brokerId, BrokerRemovalStateMachine.BrokerRemovalState state, java.lang.Exception e)
BrokerRemovalProgressListener
onProgressChanged
in interface BrokerRemovalProgressListener
brokerId
- Id of the broker getting removed.state
- the new broker removal state the operation is ine
- - nullable, an exception that occurred during the broker removal op