Server¶
Server
is an abstraction of Kafka servers (brokers) for Kafka utility.
Contract¶
awaitShutdown¶
awaitShutdown(): Unit
Awaits termination signal (and keeps this server alive)
Used when:
Kafka
utility is executed (on command line)
Starting Up¶
startup(): Unit
Starts up this server
Used when:
Kafka
utility is executed (on command line)
shutdown¶
shutdown(): Unit
Shuts down this server (as part of kafka-shutdown-hook
shutdown hook)
Used when:
Kafka
utility is executed (on command line and handles termination signals)