Package org.eclipse.debug.core.model
Interface ISuspendResume
-
- All Known Subinterfaces:
IDebugTarget,IStackFrame,IThread
public interface ISuspendResumeProvides the ability to suspend and resume a thread or debug target.Clients may implement this interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanResume()Returns whether this element can currently be resumed.booleancanSuspend()Returns whether this element can currently be suspended.booleanisSuspended()Returns whether this element is currently suspended.voidresume()Causes this element to resume its execution, generating aRESUMEevent.voidsuspend()Causes this element to suspend its execution, generating aSUSPENDevent.
-
-
-
Method Detail
-
canResume
boolean canResume()
Returns whether this element can currently be resumed.- Returns:
- whether this element can currently be resumed
-
canSuspend
boolean canSuspend()
Returns whether this element can currently be suspended.- Returns:
- whether this element can currently be suspended
-
isSuspended
boolean isSuspended()
Returns whether this element is currently suspended.- Returns:
- whether this element is currently suspended
-
resume
void resume() throws DebugExceptionCauses this element to resume its execution, generating aRESUMEevent. Has no effect on an element that is not suspended. This call is non-blocking.- Throws:
DebugException- on failure. Reasons include:- TARGET_REQUEST_FAILED - The request failed in the target
- NOT_SUPPORTED - The capability is not supported by the target
-
suspend
void suspend() throws DebugExceptionCauses this element to suspend its execution, generating aSUSPENDevent. Has no effect on an already suspended element. Implementations may be blocking or non-blocking.- Throws:
DebugException- on failure. Reasons include:- TARGET_REQUEST_FAILED - The request failed in the target
- NOT_SUPPORTED - The capability is not supported by the target
-
-