1 7 8 package java.util.concurrent; 9 import java.util.*; 10 11 172 public interface BlockingDeque<E> extends BlockingQueue <E>, Deque<E> { 173 179 180 193 void addFirst(E e); 194 195 208 void addLast(E e); 209 210 224 boolean offerFirst(E e); 225 226 240 boolean offerLast(E e); 241 242 254 void putFirst(E e) throws InterruptedException ; 255 256 268 void putLast(E e) throws InterruptedException ; 269 270 289 boolean offerFirst(E e, long timeout, TimeUnit unit) 290 throws InterruptedException ; 291 292 311 boolean offerLast(E e, long timeout, TimeUnit unit) 312 throws InterruptedException ; 313 314 321 E takeFirst() throws InterruptedException ; 322 323 330 E takeLast() throws InterruptedException ; 331 332 345 E pollFirst(long timeout, TimeUnit unit) 346 throws InterruptedException ; 347 348 361 E pollLast(long timeout, TimeUnit unit) 362 throws InterruptedException ; 363 364 378 boolean removeFirstOccurrence(Object o); 379 380 394 boolean removeLastOccurrence(Object o); 395 396 398 417 boolean add(E e); 418 419 437 boolean offer(E e); 438 439 454 void put(E e) throws InterruptedException ; 455 456 474 boolean offer(E e, long timeout, TimeUnit unit) 475 throws InterruptedException ; 476 477 488 E remove(); 489 490 499 E poll(); 500 501 511 E take() throws InterruptedException ; 512 513 525 E poll(long timeout, TimeUnit unit) 526 throws InterruptedException ; 527 528 539 E element(); 540 541 550 E peek(); 551 552 569 boolean remove(Object o); 570 571 582 public boolean contains(Object o); 583 584 589 public int size(); 590 591 597 Iterator<E> iterator(); 598 599 601 613 void push(E e); 614 } 615 | Popular Tags |