|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.realtime.WaitFreeDequeue
WaitFreeReadQueue
and WaitFreeWriteQueue
instead.
A queue that provides both unsynchronized nonblocking and synchronized blocking versions of read() and write().
WaitFreeReadQueue
,
WaitFreeWriteQueue
Constructor Summary | |
WaitFreeDequeue(Thread writer,
Thread reader,
int maximum,
MemoryArea memory)
Deprecated. Constructs a new WaitFreeDequeue . |
Method Summary | |
Object |
blockingRead()
Deprecated. A synchronized and blocking read operation. |
boolean |
blockingWrite(Object object)
Deprecated. A synchronized and blocking write operation. |
boolean |
force(Object object)
Deprecated. Replace the last object with this object. |
Object |
nonBlockingRead()
Deprecated. An unsynchronized and nonblocking read operation. |
boolean |
nonBlockingWrite(Object object)
Deprecated. An unsynchronized and nonblocking write operation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WaitFreeDequeue(Thread writer, Thread reader, int maximum, MemoryArea memory) throws IllegalArgumentException, InstantiationException, ClassNotFoundException, IllegalAccessException
WaitFreeDequeue
.
writer
- the writing threadreader
- the reading threadmaximum
- the capacity of the queuememory
- the MemoryArea
in which to allocate the
queue's buffer; if null, then the current memory area is
usedMethod Detail |
public Object blockingRead()
public Object nonBlockingRead()
public boolean force(Object object) throws MemoryScopeException
object
- the object to write to the queue
MemoryScopeException
- if the object is in an
incompatible memory areapublic boolean nonBlockingWrite(Object object) throws MemoryScopeException
object
- the object to write to the queue
MemoryScopeException
- if the object is in an
incompatible memory areapublic boolean blockingWrite(Object object) throws MemoryScopeException
object
- the object to write to the queue
MemoryScopeException
- if the object is in an
incompatible memory area
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |