public class LeaderInitiatorFactoryBean extends Object implements FactoryBean<LeaderInitiator>, SmartLifecycle, InitializingBean, ApplicationEventPublisherAware
LeaderInitiator.| Constructor and Description |
|---|
LeaderInitiatorFactoryBean(org.apache.curator.framework.CuratorFramework client,
String path,
String role)
Construct the instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
LeaderInitiator |
getObject() |
Class<?> |
getObjectType() |
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
boolean |
isSingleton() |
void |
setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) |
void |
setAutoStartup(boolean autoStartup) |
void |
setPhase(int phase) |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
public void setPhase(int phase)
public boolean isAutoStartup()
isAutoStartup in interface SmartLifecyclepublic void setAutoStartup(boolean autoStartup)
public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher in interface ApplicationEventPublisherAwarepublic void stop(Runnable callback)
stop in interface SmartLifecyclepublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanExceptionpublic LeaderInitiator getObject() throws Exception
getObject in interface FactoryBean<LeaderInitiator>Exceptionpublic Class<?> getObjectType()
getObjectType in interface FactoryBean<LeaderInitiator>public boolean isSingleton()
isSingleton in interface FactoryBean<LeaderInitiator>