public class LeaderInitiatorFactoryBean extends java.lang.Object implements org.springframework.beans.factory.FactoryBean<LeaderInitiator>, org.springframework.context.SmartLifecycle, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationEventPublisherAware
LeaderInitiator.| Constructor and Description |
|---|
LeaderInitiatorFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
LeaderInitiator |
getObject() |
java.lang.Class<?> |
getObjectType() |
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
boolean |
isSingleton() |
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) |
void |
setAutoStartup(boolean autoStartup) |
LeaderInitiatorFactoryBean |
setClient(org.apache.curator.framework.CuratorFramework client) |
void |
setLeaderEventPublisher(LeaderEventPublisher leaderEventPublisher)
A
LeaderEventPublisher option for events from the LeaderInitiator. |
LeaderInitiatorFactoryBean |
setPath(java.lang.String path) |
void |
setPhase(int phase) |
LeaderInitiatorFactoryBean |
setRole(java.lang.String role) |
void |
start() |
void |
stop() |
void |
stop(java.lang.Runnable callback) |
public LeaderInitiatorFactoryBean setClient(org.apache.curator.framework.CuratorFramework client)
public LeaderInitiatorFactoryBean setPath(java.lang.String path)
public LeaderInitiatorFactoryBean setRole(java.lang.String role)
public void setLeaderEventPublisher(LeaderEventPublisher leaderEventPublisher)
LeaderEventPublisher option for events from the LeaderInitiator.leaderEventPublisher - the LeaderEventPublisher to use.public void setPhase(int phase)
public void setAutoStartup(boolean autoStartup)
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAwarepublic boolean isAutoStartup()
isAutoStartup in interface org.springframework.context.SmartLifecyclepublic void start()
start in interface org.springframework.context.Lifecyclepublic void stop()
stop in interface org.springframework.context.Lifecyclepublic void stop(java.lang.Runnable callback)
stop in interface org.springframework.context.SmartLifecyclepublic boolean isRunning()
isRunning in interface org.springframework.context.Lifecyclepublic int getPhase()
getPhase in interface org.springframework.context.PhasedgetPhase in interface org.springframework.context.SmartLifecyclepublic void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic LeaderInitiator getObject()
getObject in interface org.springframework.beans.factory.FactoryBean<LeaderInitiator>public java.lang.Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<LeaderInitiator>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<LeaderInitiator>