|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.cache.config.ConfigurationComponent
org.jboss.cache.config.RuntimeConfig
public class RuntimeConfig
Field Summary |
---|
Fields inherited from class org.jboss.cache.config.ConfigurationComponent |
---|
log |
Constructor Summary | |
---|---|
RuntimeConfig()
|
Method Summary | |
---|---|
RuntimeConfig |
clone()
|
boolean |
equals(java.lang.Object obj)
|
java.util.concurrent.ExecutorService |
getAsyncCacheListenerExecutor()
This is only relevant if the async cache listener executor has been set using setAsyncCacheListenerExecutor(java.util.concurrent.ExecutorService) . |
java.util.concurrent.ExecutorService |
getAsyncSerializationExecutor()
This is only relevant if the async cache replication executor has been set using setAsyncSerializationExecutor(java.util.concurrent.ExecutorService) . |
BuddyGroup |
getBuddyGroup()
|
org.jgroups.util.ThreadFactory |
getEvictionTimerThreadFactory()
This is only relevant if an eviction timer thread factory has been set using setEvictionTimerThreadFactory(org.jgroups.util.ThreadFactory) . |
org.jgroups.Channel |
getChannel()
Gets the channel the cache is using. |
org.jgroups.ChannelFactory |
getMuxChannelFactory()
Gets the factory the cache will use to create a multiplexed channel. |
RPCManager |
getRPCManager()
|
javax.transaction.TransactionManager |
getTransactionManager()
|
int |
hashCode()
|
void |
reset()
Resets the runtime to default values. |
void |
setAsyncCacheListenerExecutor(java.util.concurrent.ExecutorService asyncCacheListenerExecutor)
This is used to set the executor to use for async cache listeners, and effectively overrides Configuration.setListenerAsyncPoolSize(int)
|
void |
setAsyncSerializationExecutor(java.util.concurrent.ExecutorService asyncSerializationExecutor)
This is used to set the executor to use for async cache replucation, and effectively overrides Configuration.setSerializationExecutorPoolSize(int)
|
void |
setBuddyGroup(BuddyGroup buddyGroup)
|
void |
setEvictionTimerThreadFactory(org.jgroups.util.ThreadFactory evictionTimerThreadFactory)
Sets the eviction timer thread factory to use when creating a scheduled executor. |
void |
setChannel(org.jgroups.Channel channel)
Sets the channel the cache will use. |
void |
setMuxChannelFactory(org.jgroups.ChannelFactory multiplexerChannelFactory)
Sets the factory the cache should use to create a multiplexed channel. |
void |
setRPCManager(RPCManager rpcManager)
|
void |
setTransactionManager(javax.transaction.TransactionManager transactionManager)
|
Methods inherited from class org.jboss.cache.config.ConfigurationComponent |
---|
addChildConfig, addChildConfigs, passCacheToChildConfig, removeChildConfig, removeChildConfigs, replaceChildConfig, replaceChildConfigs, setCache, testImmutability |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RuntimeConfig()
Method Detail |
---|
public void reset()
public org.jgroups.ChannelFactory getMuxChannelFactory()
null
if not setpublic void setMuxChannelFactory(org.jgroups.ChannelFactory multiplexerChannelFactory)
setChannel(Channel)
. If the channel factory is set,
Configuration.setMultiplexerStack(String)
must also be set, or
a CacheException
will be thrown during cache startup.
multiplexerChannelFactory
- channel factorypublic org.jgroups.Channel getChannel()
null
if the channel was
not externally set via setChannel(Channel)
and the
cache has not yet been started.setChannel(Channel)
public void setChannel(org.jgroups.Channel channel)
ChannelFactory
using the same stack name but different
id
s.
See ChannelFactory.createMultiplexerChannel(String,String,boolean,String)
.
These two mux channels will share the same underlying channel. One of the
two mux channels can be injected into the cache; the other can be used by
the application. The cache will not see the application messages and vice versa.
Configuring the cache to use a mux channel can also be done by configuring
the channel factory
and the
stack name
, in which case
the cache will create and use a mux channel.
channel
- channel to setpublic javax.transaction.TransactionManager getTransactionManager()
public void setTransactionManager(javax.transaction.TransactionManager transactionManager)
public org.jgroups.util.ThreadFactory getEvictionTimerThreadFactory()
setEvictionTimerThreadFactory(org.jgroups.util.ThreadFactory)
.
Will return a null if the eviction timer thread factory needs to be created internally.
public void setEvictionTimerThreadFactory(org.jgroups.util.ThreadFactory evictionTimerThreadFactory)
evictionTimerThreadFactory
- factory to usepublic java.util.concurrent.ExecutorService getAsyncSerializationExecutor()
setAsyncSerializationExecutor(java.util.concurrent.ExecutorService)
.
If the executor is created internally, this method will return null.
public void setAsyncSerializationExecutor(java.util.concurrent.ExecutorService asyncSerializationExecutor)
Configuration.setSerializationExecutorPoolSize(int)
asyncSerializationExecutor
- executor to setpublic java.util.concurrent.ExecutorService getAsyncCacheListenerExecutor()
setAsyncCacheListenerExecutor(java.util.concurrent.ExecutorService)
.
If the executor is created internally, this method will return null.
public void setAsyncCacheListenerExecutor(java.util.concurrent.ExecutorService asyncCacheListenerExecutor)
Configuration.setListenerAsyncPoolSize(int)
asyncCacheListenerExecutor
- the executor to use for async cache listenerspublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void setBuddyGroup(BuddyGroup buddyGroup)
public BuddyGroup getBuddyGroup()
public void setRPCManager(RPCManager rpcManager)
public RPCManager getRPCManager()
public RuntimeConfig clone() throws java.lang.CloneNotSupportedException
clone
in interface CloneableConfigurationComponent
clone
in class ConfigurationComponent
java.lang.CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |