001    package javax.realtime;
002    
003    /** Monitor control class specifying use of the priority ceiling
004     *  emulation protocol for monitor objects. Objects under the
005     *  influence of this protocol have the effect that a thread
006     *  entering the monitor has its effective priority -- for
007     *  priority-based dispatching -- raised to the ceiling on entry,
008     *  and is restored to its previous effective priority when it
009     *  exists the monitor.
010     */
011    public class PriorityCeilingEmulation extends MonitorControl {
012    
013        protected int ceiling;
014    
015        /** Create a <code>PriorityCeilingEmulation</code> object
016         *  with a given ceiling.
017         *
018         *  @param ceiling Priority ceiling value.
019         */
020        public PriorityCeilingEmulation(int ceiling) {
021            super();
022            this.ceiling = ceiling;
023        }
024    
025        /** Get the priority ceiling for this 
026         *  <code>PriorityCeilingEmulation</code> object.
027         *
028         *  @return The priority ceiling.
029         */
030        public int getDeafaultCeiling() {
031            return ceiling;
032        }
033    }