org.apache.tomcat.util.net
public class JIoEndpoint.WorkerStack extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
end |
protected JIoEndpoint.Worker[] |
workers |
Constructor and Description |
---|
JIoEndpoint.WorkerStack(int size) |
Modifier and Type | Method and Description |
---|---|
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?
|
protected JIoEndpoint.Worker[] workers
protected int end
public void push(JIoEndpoint.Worker worker)
object
- the object to be appended to the queue (first
element).public JIoEndpoint.Worker pop()
public JIoEndpoint.Worker peek()
public boolean isEmpty()
public int size()
public void resize(int newSize)
newSize
- Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.