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