public class AprEndpoint.WorkerStack extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
end |
protected AprEndpoint.Worker[] |
workers |
Constructor and Description |
---|
AprEndpoint.WorkerStack(int size) |
Modifier and Type | Method and Description |
---|---|
boolean |
isEmpty()
Is the queue empty?
|
AprEndpoint.Worker |
peek()
Get the first object out of the queue, Return null if the queue
is empty.
|
AprEndpoint.Worker |
pop()
Get the first object out of the queue.
|
void |
push(AprEndpoint.Worker worker)
Put the object into the queue.
|
int |
size()
How many elements are there in this queue?
|
protected AprEndpoint.Worker[] workers
protected int end
public void push(AprEndpoint.Worker worker)
object
- the object to be appended to the queue (first element).public AprEndpoint.Worker pop()
public AprEndpoint.Worker peek()
public boolean isEmpty()
public int size()
Copyright © 2015 JBoss by Red Hat. All rights reserved.