javax.realtime
Class CeilingViolationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjava.lang.IllegalArgumentException
                  extended byjava.lang.IllegalThreadStateException
                      extended byjavax.realtime.CeilingViolationException
All Implemented Interfaces:
java.io.Serializable

public class CeilingViolationException
extends java.lang.IllegalThreadStateException

This exception is thrown when a schedulable object or java.lang.Thread attempts to lock an object governed by an instance of PriorityCeilingEmulation and the thread or SO's base priority exceeds the policy's ceiling.

See Also:
Serialized Form

Method Summary
 int getCallerPriority()
          Gets the base priority of the SO or thread whose attempt to synchronize resulted in the throwing of this.
 int getCeiling()
          Gets the ceiling of the PriorityCeilingEmulation policy which was exceeded by the base priority of an SO or thread that attempted to synchronize on an object governed by the policy, which resulted in throwing of this.
 
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
 

Method Detail

getCeiling

public int getCeiling()
Gets the ceiling of the PriorityCeilingEmulation policy which was exceeded by the base priority of an SO or thread that attempted to synchronize on an object governed by the policy, which resulted in throwing of this.

Returns:
The ceiling of the PriorityCeilingEmulation policy which caused this exception to be thrown.

getCallerPriority

public int getCallerPriority()
Gets the base priority of the SO or thread whose attempt to synchronize resulted in the throwing of this.

Returns:
The synchronizing thread's base priority.