blob: 5d123270dbafc201a651569a2bc8c9e969b1e1a9 [file] [log] [blame]
package org.eclipse.jdi.hcr;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import com.sun.jdi.ThreadReference;
/**
* Hot code replacement extension to <code>com.sun.jdi.request.EventRequestManager</code>.
*/
public interface EventRequestManager extends com.sun.jdi.Mirror {
/**
* Creates a new disabled {@link ReenterStepRequest}.
* The new event request is added to the list managed by this
* EventRequestManager. Use {@link EventRequest#enable()} to
* activate this event request.
* <p>
* The returned request will control stepping only in the specified
* <code>thread</code>; all other threads will be unaffected.
* <p>
* Only one pending reenter step request is allowed per thread.
* <p>
* Note that enabling such a request can throw an <code>OperationRefusedException</code>
* if the VM refused to perform this operation.
* This in recognition that the VM may be in an awkward state and unable to comply.
* For example, execution is suspended in a native method and the arguments would be
* unavailable on return .
*
* @param thread the thread in which to step
* @return the created {@link ReenterStepRequest}
* @throws DuplicateRequestException if there is already a pending
* step request for the specified thread.
* @throws ObjectCollectedException if the thread object has been
* garbage collected.
*/
public ReenterStepRequest createReenterStepRequest(ThreadReference thread);
}