org.ops4j.monitors
Class TooManyMonitorsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.ops4j.monitors.MonitorException
org.ops4j.monitors.TooManyMonitorsException
- All Implemented Interfaces:
- Serializable
public class TooManyMonitorsException
- extends MonitorException
This Exception is thrown when the MonitorSource can not register any
more Monitors.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
TooManyMonitorsException
public TooManyMonitorsException(ExceptionSource source,
int max)
- Constructor
- Parameters:
source
- The ExceptionSource,max
- The maximum number of monitors that can be registered at the ExceptionSource.
getMaxMonitorsAllowed
public int getMaxMonitorsAllowed()
- Returns he maximum number of monitors that can be registered at the ExceptionSource.
- Returns:
- The maximum number of monitors that can be registered at the ExceptionSource.
getExceptionSource
public ExceptionSource getExceptionSource()
- Returns the ExceptionSource that can't deal with too many ExceptionMonitors.
- Returns:
- The ExceptionSource unable to cope.
Copyright © 2006-2013 OPS4J - Open Participation Software for Java. All Rights Reserved.