APIdia Launch Partner
Top Inners Fields Constructors Methods
com.sun.tools.jdi

public Class EventQueueImpl

extends MirrorImpl
implements EventQueue
Class Inheritance
All Implemented Interfaces
com.sun.jdi.event.EventQueue, com.sun.jdi.Mirror
Imports
java.util.LinkedList, com.sun.jdi.VMDisconnectedException, .VirtualMachine, com.sun.jdi.event.EventQueue, .EventSet

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
pack-priv boolean
pack-priv LinkedList<EventSet>
pack-priv TargetVM
Inherited from com.sun.tools.jdi.MirrorImpl:
vm

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv synchronized void
pack-priv synchronized void
enqueue(EventSet eventSet)

public boolean
equals(Object obj)

Overrides com.sun.tools.jdi.MirrorImpl.equals.

Indicates whether some other object is "equal to" this one.

public int
hashCode()

Overrides com.sun.tools.jdi.MirrorImpl.hashCode.

Returns a hash code value for this object.

public EventSet
remove()

Implements com.sun.jdi.event.EventQueue.remove.

Waits forever for the next available event.

public EventSet
remove(long timeout)

Implements com.sun.jdi.event.EventQueue.remove.

Filter out events not for user's eyes.

pack-priv EventSet
private EventSetImpl
removeUnfiltered(long timeout)

private boolean
pack-priv synchronized int
size()

private EventQueueImpl.TimerThread
startTimerThread(long timeout)

Inherited from com.sun.tools.jdi.MirrorImpl:
validateMirrorvalidateMirrorOrNullvalidateMirrorsvalidateMirrorsOrNullsvirtualMachine

Field Detail

closedback to summary
pack-priv boolean closed
eventSetsback to summary
pack-priv LinkedList<EventSet> eventSets
targetback to summary
pack-priv TargetVM target

Constructor Detail

EventQueueImplback to summary
pack-priv EventQueueImpl(VirtualMachine vm, TargetVM target)

Method Detail

closeback to summary
pack-priv synchronized void close()
enqueueback to summary
pack-priv synchronized void enqueue(EventSet eventSet)
equalsback to summary
public boolean equals(Object obj)

Overrides com.sun.tools.jdi.MirrorImpl.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

hashCodeback to summary
public int hashCode()

Overrides com.sun.tools.jdi.MirrorImpl.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for this object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
removeback to summary
public EventSet remove() throws InterruptedException

Implements com.sun.jdi.event.EventQueue.remove.

Doc from com.sun.jdi.event.EventQueue.remove.

Waits forever for the next available event.

Exceptions
InterruptedException:
if any thread has interrupted this thread.
removeback to summary
public EventSet remove(long timeout) throws InterruptedException

Implements com.sun.jdi.event.EventQueue.remove.

Filter out events not for user's eyes. Then filter out empty sets.

Exceptions
InterruptedException:

Doc from com.sun.jdi.event.EventQueue.remove.

if any thread has interrupted this thread.

removeInternalback to summary
pack-priv EventSet removeInternal() throws InterruptedException
removeUnfilteredback to summary
private EventSetImpl removeUnfiltered(long timeout) throws InterruptedException
shouldWaitback to summary
private boolean shouldWait(EventQueueImpl.TimerThread timerThread)
sizeback to summary
pack-priv synchronized int size()
startTimerThreadback to summary
private EventQueueImpl.TimerThread startTimerThread(long timeout)
com.sun.tools.jdi back to summary

private Class EventQueueImpl.TimerThread

extends Thread
Class Inheritance

Field Summary

Modifier and TypeField and Description
private boolean
private long
Inherited from java.lang.Thread:
MAX_PRIORITYMIN_PRIORITYNORM_PRIORITY

Constructor Summary

AccessConstructor and Description
pack-priv
TimerThread(long timeout)

Method Summary

Modifier and TypeMethod and Description
public void
run()

Overrides java.lang.Thread.run.

Implements java.lang.Runnable.run.

This method is run by the thread when it executes.

pack-priv boolean
Inherited from java.lang.Thread:
activeCountcheckAccessclonecurrentThreaddumpStackenumerategetAllStackTracesgetContextClassLoadergetDefaultUncaughtExceptionHandlergetIdgetNamegetPrioritygetStackTracegetStategetThreadGroupgetUncaughtExceptionHandlerholdsLockinterruptinterruptedisAliveisDaemonisInterruptedisVirtualjoinjoinjoinjoinofPlatformofVirtualonSpinWaitsetContextClassLoadersetDaemonsetDefaultUncaughtExceptionHandlersetNamesetPrioritysetUncaughtExceptionHandlersleepsleepsleepstartstartVirtualThreadthreadIdtoStringyield

Field Detail

timedOutback to summary
private boolean timedOut
timeoutback to summary
private long timeout

Constructor Detail

TimerThreadback to summary
pack-priv TimerThread(long timeout)

Method Detail

runback to summary
public void run()

Overrides java.lang.Thread.run.

Implements java.lang.Runnable.run.

Doc from java.lang.Thread.run.

This method is run by the thread when it executes. Subclasses of Thread may override this method.

This method is not intended to be invoked directly. If this thread is a platform thread created with a Runnable task then invoking this method will invoke the task's run method. If this thread is a virtual thread then invoking this method directly does nothing.

timedOutback to summary
pack-priv boolean timedOut()