org.infinispan.config
Class RuntimeConfig

java.lang.Object
  extended by org.infinispan.config.AbstractConfigurationBean
      extended by org.infinispan.config.AbstractNamedCacheConfigurationBean
          extended by org.infinispan.config.RuntimeConfig
All Implemented Interfaces:
Serializable, Cloneable, CloneableConfigurationComponent

public class RuntimeConfig
extends AbstractNamedCacheConfigurationBean

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
cr
 
Fields inherited from class org.infinispan.config.AbstractConfigurationBean
EMPTY_PROPERTIES, log, overriddenConfigurationElements
 
Constructor Summary
RuntimeConfig()
           
 
Method Summary
 RuntimeConfig clone()
           
 boolean equals(Object obj)
           
 ExecutorService getAsyncCacheListenerExecutor()
          This is only relevant if the async cache listener executor has been set using setAsyncCacheListenerExecutor(java.util.concurrent.ExecutorService).
 ExecutorService getAsyncSerializationExecutor()
          This is only relevant if the async cache replication executor has been set using setAsyncSerializationExecutor(java.util.concurrent.ExecutorService).
 RpcManager getRPCManager()
           
 TransactionManager getTransactionManager()
           
 int hashCode()
           
 void reset()
          Resets the runtime to default values.
 void setAsyncCacheListenerExecutor(ExecutorService asyncCacheListenerExecutor)
          This is used to set the executor to use for async cache listeners, and effectively overrides Configuration#setListenerAsyncPoolSize(int)

 void setAsyncSerializationExecutor(ExecutorService asyncSerializationExecutor)
          This is used to set the executor to use for async cache replucation, and effectively overrides Configuration#setSerializationExecutorPoolSize(int)

 void setRPCManager(RpcManager rpcManager)
           
 void setTransactionManager(TransactionManager transactionManager)
           
 
Methods inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
hasComponentStarted
 
Methods inherited from class org.infinispan.config.AbstractConfigurationBean
testImmutability, toTypedProperties, toTypedProperties, uc
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuntimeConfig

public RuntimeConfig()
Method Detail

reset

public void reset()
Resets the runtime to default values.


getTransactionManager

public TransactionManager getTransactionManager()

setTransactionManager

public void setTransactionManager(TransactionManager transactionManager)

getAsyncSerializationExecutor

public ExecutorService getAsyncSerializationExecutor()
This is only relevant if the async cache replication executor has been set using setAsyncSerializationExecutor(java.util.concurrent.ExecutorService). If the executor is created internally, this method will return null.

Returns:
the executor used for async replication.
Since:
4.0

setAsyncSerializationExecutor

public void setAsyncSerializationExecutor(ExecutorService asyncSerializationExecutor)
This is used to set the executor to use for async cache replucation, and effectively overrides Configuration#setSerializationExecutorPoolSize(int)

Parameters:
asyncSerializationExecutor - executor to set
Since:
4.0

getAsyncCacheListenerExecutor

public ExecutorService getAsyncCacheListenerExecutor()
This is only relevant if the async cache listener executor has been set using setAsyncCacheListenerExecutor(java.util.concurrent.ExecutorService). If the executor is created internally, this method will return null.

Returns:
the executor to use for async cache listeners
Since:
4.0

setAsyncCacheListenerExecutor

public void setAsyncCacheListenerExecutor(ExecutorService asyncCacheListenerExecutor)
This is used to set the executor to use for async cache listeners, and effectively overrides Configuration#setListenerAsyncPoolSize(int)

Parameters:
asyncCacheListenerExecutor - the executor to use for async cache listeners
Since:
4.0

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

setRPCManager

public void setRPCManager(RpcManager rpcManager)

getRPCManager

public RpcManager getRPCManager()

clone

public RuntimeConfig clone()
                    throws CloneNotSupportedException
Specified by:
clone in interface CloneableConfigurationComponent
Overrides:
clone in class AbstractConfigurationBean
Throws:
CloneNotSupportedException


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.