public class BoundedBuffer<T> extends Object
Constructor and Description |
---|
BoundedBuffer(int size) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
pause() |
void |
put(T x) |
void |
putUninterruptibly(T x) |
void |
resume() |
int |
size() |
T |
take() |
T |
takeUninterruptly() |
protected final Lock lock
public void put(T x) throws InterruptedException
InterruptedException
public T take() throws InterruptedException
InterruptedException
public void putUninterruptibly(T x)
public T takeUninterruptly()
public void pause()
public void resume()
public void clear()
public int size()
Copyright © 2010-2016 Stardog Union. All Rights Reserved.