org.ops4j.monitors
Class TooManyMonitorsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.ops4j.monitors.MonitorException
                  extended by 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

Constructor Summary
TooManyMonitorsException(ExceptionSource source, int max)
          Constructor
 
Method Summary
 ExceptionSource getExceptionSource()
          Returns the ExceptionSource that can't deal with too many ExceptionMonitors.
 int getMaxMonitorsAllowed()
          Returns he maximum number of monitors that can be registered at the ExceptionSource.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.