public class CacheServerFactoryBean extends Object implements FactoryBean<CacheServer>, InitializingBean, DisposableBean, SmartLifecycle
CacheServer
instances.Constructor and Description |
---|
CacheServerFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
destroy() |
CacheServer |
getObject() |
Class<?> |
getObjectType() |
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
boolean |
isSingleton() |
void |
setAutoStartup(boolean autoStartup) |
void |
setBindAddress(String bindAddress) |
void |
setCache(Cache cache) |
void |
setHostNameForClients(String hostNameForClients) |
void |
setListeners(Set<InterestRegistrationListener> listeners) |
void |
setLoadPollInterval(long loadPollInterval) |
void |
setMaxConnections(int maxConnections) |
void |
setMaxMessageCount(int maxMessageCount) |
void |
setMaxThreads(int maxThreads) |
void |
setMaxTimeBetweenPings(int maxTimeBetweenPings) |
void |
setMessageTimeToLive(int messageTimeToLive) |
void |
setNotifyBySubscription(boolean notifyBySubscription) |
void |
setPort(int port) |
void |
setServerGroups(String[] serverGroups) |
void |
setServerLoadProbe(ServerLoadProbe serverLoadProbe) |
void |
setSocketBufferSize(int socketBufferSize) |
void |
setSubscriptionCapacity(int subscriptionCapacity) |
void |
setSubscriptionDiskStore(String diskStoreName) |
void |
setSubscriptionEvictionPolicy(SubscriptionEvictionPolicy evictionPolicy) |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
public CacheServer getObject()
getObject
in interface FactoryBean<CacheServer>
public Class<?> getObjectType()
getObjectType
in interface FactoryBean<CacheServer>
public boolean isSingleton()
isSingleton
in interface FactoryBean<CacheServer>
public void afterPropertiesSet() throws IOException
afterPropertiesSet
in interface InitializingBean
IOException
public void destroy()
destroy
in interface DisposableBean
public boolean isAutoStartup()
isAutoStartup
in interface SmartLifecycle
public void stop(Runnable callback)
stop
in interface SmartLifecycle
public void setAutoStartup(boolean autoStartup)
public void setPort(int port)
public void setMaxConnections(int maxConnections)
public void setMaxThreads(int maxThreads)
public void setNotifyBySubscription(boolean notifyBySubscription)
public void setSocketBufferSize(int socketBufferSize)
public void setMaxTimeBetweenPings(int maxTimeBetweenPings)
public void setMaxMessageCount(int maxMessageCount)
public void setMessageTimeToLive(int messageTimeToLive)
public void setServerGroups(String[] serverGroups)
public void setServerLoadProbe(ServerLoadProbe serverLoadProbe)
public void setLoadPollInterval(long loadPollInterval)
public void setBindAddress(String bindAddress)
public void setHostNameForClients(String hostNameForClients)
public void setListeners(Set<InterestRegistrationListener> listeners)
public void setCache(Cache cache)
public void setSubscriptionEvictionPolicy(SubscriptionEvictionPolicy evictionPolicy)
evictionPolicy
- the subscriptionEvictionPolicy to setpublic void setSubscriptionCapacity(int subscriptionCapacity)
subscriptionCapacity
- the subscriptionCapacity to setpublic void setSubscriptionDiskStore(String diskStoreName)