- All Superinterfaces:
Event,Locatable,LocatableEvent,Mirror
public interface MonitorContendedEnteredEvent extends LocatableEvent
Notification that a thread in the target VM is entering a monitor
after waiting for it to be released by another thread.
- Since:
- 1.6
- See Also:
EventQueue,MonitorContendedEnterEvent
-
Method Summary
Modifier and Type Method Description ObjectReferencemonitor()Returns the monitor that was entered.ThreadReferencethread()Returns the thread in which this event has occurred.
-
Method Details
-
thread
ThreadReference thread()Returns the thread in which this event has occurred.- Specified by:
threadin interfaceLocatableEvent- Returns:
- a
ThreadReferencewhich mirrors the event's thread in the target VM.
-
monitor
ObjectReference monitor()Returns the monitor that was entered.- Returns:
- an
ObjectReferencefor the monitor.
-