com.espertech.esper.client
Class ConfigurationEngineDefaults.ExceptionHandling

java.lang.Object
  extended by com.espertech.esper.client.ConfigurationEngineDefaults.ExceptionHandling
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
ConfigurationEngineDefaults

public static class ConfigurationEngineDefaults.ExceptionHandling
extends java.lang.Object
implements java.io.Serializable

Configuration object for defining exception handling behavior.

See Also:
Serialized Form

Nested Class Summary
static class ConfigurationEngineDefaults.ExceptionHandling.UndeployRethrowPolicy
          Enumeration of blocking techniques.
 
Constructor Summary
ConfigurationEngineDefaults.ExceptionHandling()
           
 
Method Summary
 void addClass(java.lang.Class exceptionHandlerFactoryClass)
          Add an exception handler factory class.
 void addClass(java.lang.String exceptionHandlerFactoryClassName)
          Add an exception handler factory class name.
 void addClasses(java.util.List<java.lang.String> classNames)
          Add a list of exception handler class names.
 java.util.List<java.lang.String> getHandlerFactories()
          Returns the list of exception handler factory class names, see ExceptionHandlerFactory
 ConfigurationEngineDefaults.ExceptionHandling.UndeployRethrowPolicy getUndeployRethrowPolicy()
          Returns the policy to instruct the engine whether a module un-deploy rethrows runtime exceptions that are encountered during the undeploy for any statement that is undeployed.
 void setUndeployRethrowPolicy(ConfigurationEngineDefaults.ExceptionHandling.UndeployRethrowPolicy undeployRethrowPolicy)
          Sets the policy to instruct the engine whether a module un-deploy rethrows runtime exceptions that are encountered during the undeploy for any statement that is undeployed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationEngineDefaults.ExceptionHandling

public ConfigurationEngineDefaults.ExceptionHandling()
Method Detail

getHandlerFactories

public java.util.List<java.lang.String> getHandlerFactories()
Returns the list of exception handler factory class names, see ExceptionHandlerFactory

Returns:
list of fully-qualified class names

addClass

public void addClass(java.lang.String exceptionHandlerFactoryClassName)
Add an exception handler factory class name.

Provide a fully-qualified class name of the implementation of the ExceptionHandlerFactory interface.

Parameters:
exceptionHandlerFactoryClassName - class name of exception handler factory

addClasses

public void addClasses(java.util.List<java.lang.String> classNames)
Add a list of exception handler class names.

Parameters:
classNames - to add

addClass

public void addClass(java.lang.Class exceptionHandlerFactoryClass)
Add an exception handler factory class.

The class provided should implement the ExceptionHandlerFactory interface.

Parameters:
exceptionHandlerFactoryClass - class of implementation

getUndeployRethrowPolicy

public ConfigurationEngineDefaults.ExceptionHandling.UndeployRethrowPolicy getUndeployRethrowPolicy()
Returns the policy to instruct the engine whether a module un-deploy rethrows runtime exceptions that are encountered during the undeploy for any statement that is undeployed. By default we are logging exceptions.

Returns:
indicator

setUndeployRethrowPolicy

public void setUndeployRethrowPolicy(ConfigurationEngineDefaults.ExceptionHandling.UndeployRethrowPolicy undeployRethrowPolicy)
Sets the policy to instruct the engine whether a module un-deploy rethrows runtime exceptions that are encountered during the undeploy for any statement that is undeployed. By default we are logging exceptions.

Parameters:
undeployRethrowPolicy - indicator

© 2006-2016 EsperTech Inc.
All rights reserved.
Visit us at espertech.com