1 8 package org.apache.avalon.excalibur.event; 9 10 18 public interface Source { 19 20 28 void enqueue( QueueElement element ) 29 throws SourceException; 30 31 45 void enqueue( QueueElement[] elements ) 46 throws SourceException; 47 48 55 boolean tryEnqueue( QueueElement element ); 56 57 97 PreparedEnqueue prepareEnqueue( QueueElement[] elements ) 98 throws SourceException; 99 100 103 int size(); 104 105 106 115 int maxSize(); 116 117 124 boolean isFull(); 125 126 131 int canAccept(); 132 133 } 134 | Popular Tags |