APIdia Launch Partner
Top Description Methods
com.sun.jdi.event

public Interface MonitorWaitEvent

extends LocatableEvent
Known Direct Implementers
com.sun.tools.jdi.EventSetImpl.MonitorWaitEventImpl
Imports
com.sun.jdi.ObjectReference, .ThreadReference

Notification that a thread in the target VM is about to wait on a monitor object.
Author
Swamy Venkataramanappa
Since
1.6
See Also
EventQueue, MonitorWaitedEvent

Method Summary

Modifier and TypeMethod and Description
public ObjectReference

Returns:

an ObjectReference for the monitor.
monitor
()

Returns the monitor object that the thread about to wait.

public ThreadReference

Returns:

a ThreadReference which mirrors the event's thread in the target VM.
thread
()

Redeclares com.sun.jdi.event.LocatableEvent.thread.

Returns the thread in which monitor wait event has occurred.

public long

Returns:

a jlong containing monitor wait time in milliseconds.
timeout
()

Returns the number of millisecond the thread will wait.

Method Detail

monitorback to summary
public ObjectReference monitor()

Returns the monitor object that the thread about to wait.

Returns:ObjectReference

an ObjectReference for the monitor.

threadback to summary
public ThreadReference thread()

Redeclares com.sun.jdi.event.LocatableEvent.thread.

Returns the thread in which monitor wait event has occurred.

Returns:ThreadReference

a ThreadReference which mirrors the event's thread in the target VM.

timeoutback to summary
public long timeout()

Returns the number of millisecond the thread will wait.

Returns:long

a jlong containing monitor wait time in milliseconds.