This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 59072
Collapse All | Expand All

(-)debuggerjpda/api/src/org/netbeans/api/debugger/jpda/JPDAThread.java (+25 lines)
Lines 20-25 import java.beans.PropertyChangeListener Link Here
20
20
21
/**
21
/**
22
 * Represents one Java thread in debugged process.
22
 * Represents one Java thread in debugged process.
23
 * Contains basic methods for inspection and manipulation of any JPDA thread.
24
 * Additional optional capabilities, expressed as inner interfaces,
25
 * can be implemented as well:
26
 * <ul>
27
 * <li>{@link Terminatable} - for threads that can be terminated
28
 * </ul>
23
 * 
29
 * 
24
 * @author Jan Jancura
30
 * @author Jan Jancura
25
 */
31
 */
Lines 177-180 public interface JPDAThread { Link Here
177
     * @return monitors owned by this thread
183
     * @return monitors owned by this thread
178
     */
184
     */
179
    public abstract ObjectVariable[] getOwnedMonitors ();
185
    public abstract ObjectVariable[] getOwnedMonitors ();
186
187
    /** Optional extension of {@link JPDAThread} that supports
188
     * termination. Usage: <pre>
189
     * {@link JPDAThread} t = ...;
190
     * if (t implements JPDAThread.Terminatable) {
191
     *   // enable termination for term
192
     *  JPDAThread.Terminatable term = (JPDAThread.Terminatable)t);
193
     *
194
     *  // invoke the termination when needed
195
     *  term.terminate ();
196
     * }
197
     * </pre>
198
     * @since 1.5
199
     */
200
    public interface Terminatable {
201
        /** Terminates the threads execution.
202
         */
203
        public void terminate ();
204
    }
180
}
205
}

Return to bug 59072