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:
Serializable

public class CeilingViolationException
extends IllegalThreadStateException

Thrown when a Schedulable object or Thread attempts to lock an object governed by an instance of PriorityCeilingEmulation and the thread or Schedulable object's base priority exceeds the policy's ceiling.

Since:
0.4.0
Author:
Morgan Deters
See Also:
Serialized Form

Method Summary
 int getCallerPriority()
          Gets the base priority of the Schedulable object or thread whose attempt to synchronize resulted in this being thrown.
 int getCeiling()
          Get the ceiling of the PriorityCeilingEmulation policy which was exceeded by the base priority of a Schedulable object 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

getCallerPriority

public int getCallerPriority()
Gets the base priority of the Schedulable object or thread whose attempt to synchronize resulted in this being thrown.

Returns:
the synchronizing Schedulable object's or thread's base priority

getCeiling

public int getCeiling()
Get the ceiling of the PriorityCeilingEmulation policy which was exceeded by the base priority of a Schedulable object 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


jRate is developed and maintained by the jRate project development team.
Copyright (c) 2001-2006 Angelo Corsaro and Morgan Deters.