APIdia Launch Partner
Top Inners Fields Constructors Methods
sun.jvm.hotspot.utilities

public Class MessageQueueBackend

extends Object
Class Inheritance
Imports
java.util.LinkedList

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private MessageQueueBackend.MessageQueueImpl
private MessageQueueBackend.MessageQueueImpl

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public MessageQueue
getFirstQueue()

Get one of the two symmetric sides of this message queue.

public MessageQueue
getSecondQueue()

Get second of the two symmetric sides of this message queue.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

leftRightQueueback to summary
private MessageQueueBackend.MessageQueueImpl leftRightQueue
rightLeftQueueback to summary
private MessageQueueBackend.MessageQueueImpl rightLeftQueue

Constructor Detail

MessageQueueBackendback to summary
public MessageQueueBackend()

Method Detail

getFirstQueueback to summary
public MessageQueue getFirstQueue()

Get one of the two symmetric sides of this message queue.

getSecondQueueback to summary
public MessageQueue getSecondQueue()

Get second of the two symmetric sides of this message queue.

sun.jvm.hotspot.utilities back to summary

private Class MessageQueueBackend.MessageQueueImpl

extends Object
implements MessageQueue
Class Inheritance
  • java.lang.Object
  • sun.jvm.hotspot.utilities.MessageQueueBackend.MessageQueueImpl
All Implemented Interfaces
sun.jvm.hotspot.utilities.MessageQueue

Field Summary

Modifier and TypeField and Description
private LinkedList<Object>
private LinkedList<Object>

Constructor Summary

AccessConstructor and Description
public
MessageQueueImpl(LinkedList<Object> listToReadFrom, LinkedList<Object> listToWriteTo)

Method Summary

Modifier and TypeMethod and Description
public Object
readMessage()

Implements sun.jvm.hotspot.utilities.MessageQueue.readMessage.

This blocks until a message is available.

public Object
readMessageWithTimeout(long millis)

Implements sun.jvm.hotspot.utilities.MessageQueue.readMessageWithTimeout.

This blocks for up to millis milliseconds until a message is available.

public void
writeMessage(Object obj)

Implements sun.jvm.hotspot.utilities.MessageQueue.writeMessage.

Write a message to the queue

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

readListback to summary
private LinkedList<Object> readList
writeListback to summary
private LinkedList<Object> writeList

Constructor Detail

MessageQueueImplback to summary
public MessageQueueImpl(LinkedList<Object> listToReadFrom, LinkedList<Object> listToWriteTo)

Method Detail

readMessageback to summary
public Object readMessage()

Implements sun.jvm.hotspot.utilities.MessageQueue.readMessage.

Doc from sun.jvm.hotspot.utilities.MessageQueue.readMessage.

This blocks until a message is available. Even if the thread is interrupted while it is waiting, this will not return until a message is written by the entity on the other side of the queue.

readMessageWithTimeoutback to summary
public Object readMessageWithTimeout(long millis)

Implements sun.jvm.hotspot.utilities.MessageQueue.readMessageWithTimeout.

Doc from sun.jvm.hotspot.utilities.MessageQueue.readMessageWithTimeout.

This blocks for up to millis milliseconds until a message is available. If no message becomes available within this time period, or the thread is interrupted during the wait, returns null. (This implies that passing the value null back and forth is not distinguishable with this method.) Passing a value of 0 for the millis argument causes this method to return without blocking. The millis argument must be greater than or equal to zero.

writeMessageback to summary
public void writeMessage(Object obj)

Implements sun.jvm.hotspot.utilities.MessageQueue.writeMessage.

Doc from sun.jvm.hotspot.utilities.MessageQueue.writeMessage.

Write a message to the queue