org.jawk.jrt
Interface Blockable


public interface Blockable

An item that blocks.


Method Summary
 boolean willBlock(BlockObject bo)
          Polls whether the item will block or not.
 

Method Detail

willBlock

boolean willBlock(BlockObject bo)
Polls whether the item will block or not. The blocking mechanism should perform this once. If blocking will occur, then the blocking mechanism will enter into a wait() state. Otherwise, the item is in a non-blocking state, waiting to be processed by the client.

Parameters:
bo - The block object querying whether to block or not.
Returns:
true if it will block (i.e., no data is available), false otherwise