Keel 2.1RC2

org.apache.excalibur.event.impl
Class FixedSizeQueue.FixedSizePreparedEnqueue

java.lang.Object
  extended byorg.apache.excalibur.event.impl.FixedSizeQueue.FixedSizePreparedEnqueue
All Implemented Interfaces:
PreparedEnqueue
Enclosing class:
FixedSizeQueue

private static final class FixedSizeQueue.FixedSizePreparedEnqueue
extends java.lang.Object
implements PreparedEnqueue


Field Summary
private  java.lang.Object[] m_elements
           
private  FixedSizeQueue m_parent
           
 
Constructor Summary
private FixedSizeQueue.FixedSizePreparedEnqueue(FixedSizeQueue parent, java.lang.Object[] elements)
           
 
Method Summary
 void abort()
          Abort a previously prepared provisional enqueue operation (from the prepareEnqueue method).
 void commit()
          Commit a previously prepared provisional enqueue operation (from the prepareEnqueue method).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_parent

private final FixedSizeQueue m_parent

m_elements

private java.lang.Object[] m_elements
Constructor Detail

FixedSizeQueue.FixedSizePreparedEnqueue

private FixedSizeQueue.FixedSizePreparedEnqueue(FixedSizeQueue parent,
                                                java.lang.Object[] elements)
Method Detail

commit

public void commit()
Description copied from interface: PreparedEnqueue
Commit a previously prepared provisional enqueue operation (from the prepareEnqueue method). Causes the provisionally enqueued elements to appear on the queue for future dequeue operations. Note that once a prepareEnqueue has returned an enqueue key, the queue cannot reject the entries.

Specified by:
commit in interface PreparedEnqueue

abort

public void abort()
Description copied from interface: PreparedEnqueue
Abort a previously prepared provisional enqueue operation (from the prepareEnqueue method). Causes the queue to discard the provisionally enqueued elements.

Specified by:
abort in interface PreparedEnqueue

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.