public class EmbeddedBroker extends Object implements AutoCloseable
| Constructor and Description |
|---|
EmbeddedBroker(EmbeddedBrokerConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
AuthenticationManager |
getAuthenticationManager() |
Broker |
getBroker() |
BrokerConfiguration |
getBrokerConfiguration() |
Runnable |
getBrokerDiedCallback()
This callback wil be called when the broker dies, for example in case of
"leadership lost" or "broker commit log"
|
EmbeddedBrokerConfiguration |
getConfiguration() |
GroupMapperFunction |
getGroupMapperFunction() |
void |
setAuthenticationManager(AuthenticationManager authenticationManager) |
void |
setBrokerDiedCallback(Runnable brokerDiedCallback)
This callback wil be called when the broker dies, for example in case of
"leadership lost" or "broker commit log"
|
void |
setGroupMapperFunction(GroupMapperFunction groupMapperFunction) |
void |
start() |
void |
stop() |
public EmbeddedBroker(EmbeddedBrokerConfiguration configuration)
public AuthenticationManager getAuthenticationManager()
public void setAuthenticationManager(AuthenticationManager authenticationManager)
public Runnable getBrokerDiedCallback()
public void setBrokerDiedCallback(Runnable brokerDiedCallback)
brokerDiedCallback - public EmbeddedBrokerConfiguration getConfiguration()
public GroupMapperFunction getGroupMapperFunction()
public void setGroupMapperFunction(GroupMapperFunction groupMapperFunction)
public Broker getBroker()
public BrokerConfiguration getBrokerConfiguration()
public void stop()
public void close()
close in interface AutoCloseableCopyright © 2016. All rights reserved.