org.apache.excalibur.event
Interface PreparedEnqueue


public interface PreparedEnqueue

A PreparedEnqueue is an object returned from a prepareEnqueue method that allows you to either commit or abort the enqueue operation.

Author:
Avalon Development Team

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).
 

Method Detail

commit

public void commit()
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.


abort

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



Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.