Java java.util.concurrent SynchronousQueue fields, constructors, methods, implement or subclass

Example usage for Java java.util.concurrent SynchronousQueue fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.util.concurrent SynchronousQueue.

The text is from its open source code.

Constructor

SynchronousQueue()
Creates a SynchronousQueue with nonfair access policy.
SynchronousQueue(boolean fair)
Creates a SynchronousQueue with the specified fairness policy.

Method

booleanadd(E e)
Inserts the specified element into this queue if it is possible to do so immediately without violating capacity restrictions, returning true upon success and throwing an IllegalStateException if no space is currently available.
Epoll(long timeout, TimeUnit unit)
Retrieves and removes the head of this queue, waiting if necessary up to the specified wait time, for another thread to insert it.
voidput(E e)
Adds the specified element to this queue, waiting if necessary for another thread to receive it.
Etake()
Retrieves and removes the head of this queue, waiting if necessary for another thread to insert it.