org.curjent.agent
Class CapacityExceededException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.curjent.agent.AgentException
                  extended by org.curjent.agent.CapacityExceededException
All Implemented Interfaces:
Serializable

public class CapacityExceededException
extends AgentException

Number of accepted and/or pending calls has exceeded an agent's configured capacity.

See Also:
Capacity, Serialized Form

Constructor Summary
CapacityExceededException()
          Exception with a null message and cause.
CapacityExceededException(AgentCall<?> call)
          Canceled call.
CapacityExceededException(String message)
          Exception with a given message and a null cause.
CapacityExceededException(String message, Throwable cause)
          Exception with a given message and cause.
CapacityExceededException(Throwable cause)
          Exception with a null message and a given cause.
 
Method Summary
 AgentCall<?> getExpiredCall()
          Get the call that was canceled.
 void setExpiredCall(AgentCall<?> call)
          Set the call that was canceled.
 
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

CapacityExceededException

public CapacityExceededException(AgentCall<?> call)
Canceled call. May be null. The call is saved in a transient field and is therefore not serialized and null when deserialized.


CapacityExceededException

public CapacityExceededException()
Exception with a null message and cause.

See Also:
Throwable.Throwable()

CapacityExceededException

public CapacityExceededException(String message)
Exception with a given message and a null cause. The given message may be empty or null.

See Also:
Throwable.Throwable(String)

CapacityExceededException

public CapacityExceededException(Throwable cause)
Exception with a null message and a given cause. The given cause may be null.

See Also:
Throwable.Throwable(Throwable)

CapacityExceededException

public CapacityExceededException(String message,
                                 Throwable cause)
Exception with a given message and cause. The given message may be empty or null, and the given cause may be null.

See Also:
Throwable.Throwable(String, Throwable)
Method Detail

getExpiredCall

public AgentCall<?> getExpiredCall()
Get the call that was canceled. May be null.


setExpiredCall

public void setExpiredCall(AgentCall<?> call)
Set the call that was canceled. May be null. The call is saved in a transient field and is therefore not serialized and null when deserialized.



Copyright 2009-2011 Tom Landon
Apache License 2.0