Interface LifecycleComponent
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
AbstractLifecycleComponent,AutoCloseableLifecycleComponent,AutoRecoveryService,BookieService,DataIntegrityService,HttpService,LifecycleComponentStack,RxSchedulerLifecycleComponent,ScrubberService,ServerLifecycleComponent,StatsProviderService
A component based on lifecycle management.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddLifecycleListener(LifecycleListener listener) voidclose()getName()default voidpublishInfo(ComponentInfoPublisher componentInfoPublisher) voidremoveLifecycleListener(LifecycleListener listener) voidSet the default handler invoked when a lifecycle component abruptly terminates due an uncaught exception.voidstart()voidstop()
-
Method Details
-
getName
String getName() -
lifecycleState
Lifecycle.State lifecycleState() -
addLifecycleListener
-
removeLifecycleListener
-
publishInfo
-
start
void start() -
stop
void stop() -
close
void close()- Specified by:
closein interfaceAutoCloseable
-
setExceptionHandler
Set the default handler invoked when a lifecycle component abruptly terminates due an uncaught exception.- Parameters:
handler- handler invoked when an uncaught exception happens in the lifecycle component.
-