org.apache.tomcat.util.net
public class JIoEndpoint.WorkerStack extends Object
Field Summary | |
---|---|
protected int | end |
protected JIoEndpoint.Worker[] | workers |
Constructor Summary | |
---|---|
WorkerStack(int size) |
Method Summary | |
---|---|
boolean | isEmpty()
Is the queue empty? |
JIoEndpoint.Worker | peek()
Get the first object out of the queue, Return null if the queue
is empty. |
JIoEndpoint.Worker | pop()
Get the first object out of the queue. |
void | push(JIoEndpoint.Worker worker)
Put the object into the queue. |
void | resize(int newSize)
Resize the queue. |
int | size()
How many elements are there in this queue? |
Parameters: object the object to be appended to the queue (first element).
Parameters: newSize