|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BufferAttributeController
Base attribute controller interface for buffer implementations. It defines a read only attribute which is the current size of the buffer. It also defines the maximum capacity of the buffer. A maximum capacity equals to zero indicates that there is no capacity limitation.
Method Summary | |
---|---|
int |
getCurrentSize()
Returns the current size of the queue. |
int |
getMaxCapacity()
Returns the maximum capacity of the queue. |
void |
setMaxCapacity(int maxCapacity)
Sets the maximum capacity of the queue. |
Method Detail |
---|
int getCurrentSize()
int getMaxCapacity()
void setMaxCapacity(int maxCapacity) throws InterruptedException
maxCapacity
- the maximum capacity of the queue.
IllegalArgumentException
- if maxCapacity
is negative.
InterruptedException
- if it is interrupted while waiting for the
mutex to be acquired.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |