org.umber.catalan.process.queue
Interface IQueue

All Superinterfaces:
IPropertyHolder
All Known Subinterfaces:
INamedQueue
All Known Implementing Classes:
DefaultNamedQueue, DefaultQueue

public interface IQueue
extends IPropertyHolder

A collection of processing nodes. Can be read-only or read/write. Includes an IQueue-wide property Map.

Author:
jsheets

Method Summary
 java.util.List getNodes()
          Retrieves the current node processing list.
 boolean isReadOnly()
          Determines if a queue is read-only.
 
Methods inherited from interface org.umber.catalan.process.workers.IPropertyHolder
getProperties
 

Method Detail

getNodes

public java.util.List getNodes()
Retrieves the current node processing list.

Returns:
the current node list

isReadOnly

public boolean isReadOnly()
Determines if a queue is read-only. The nodes of a read-only queue can be examined, but not moved around. Any attempts to add or remove nodes will trigger an UnsupportedOperationException.

Note: Operations on the nodes themselves cannot be screened out, so a read-only queue is only truly read-only if all of its nodes are immutable.

Returns:
true if queue is read-only