AprEndpoint.WorkerStack (Apache Tomcat 6.0.51 API Documentation)
Keywords: org.apache.tomcat.util.net.AprEndpoint.WorkerStack class

Overview | Package | Class | Tree | Deprecated | Index | Help
| Apache Tomcat 6.0.51
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tomcat.util.net
Class AprEndpoint.WorkerStack

    java.lang.Object
      org.apache.tomcat.util.net.AprEndpoint.WorkerStack

Enclosing class:
  AprEndpoint

    public class AprEndpoint.WorkerStack

extends java.lang.Object

Field Summary
`protected int` | `end`
`protected AprEndpoint.Worker[]` | `workers`

Constructor Summary
`AprEndpoint.WorkerStack(int size)`

Method Summary
`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 worker into the queue.
`void` | `resize(int newSize)` Resize the queue.
`int` | `size()` How many elements are there in this queue?

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### workers

    protected AprEndpoint.Worker[] workers

### end

    protected int end

Constructor Detail

### AprEndpoint.WorkerStack

    public AprEndpoint.WorkerStack(int size)

Method Detail

### push

    public void push(AprEndpoint.Worker worker)

  Put the worker into the queue. If the queue is full (for example if the queue has been reduced in size) the worker will be dropped.

  Parameters:
    `worker` - the worker to be appended to the queue (first element).

### pop

    public AprEndpoint.Worker pop()

  Get the first object out of the queue. Return null if the queue is empty.

### peek

    public AprEndpoint.Worker peek()

  Get the first object out of the queue, Return null if the queue is empty.

### isEmpty

    public boolean isEmpty()

  Is the queue empty?

### size

    public int size()

  How many elements are there in this queue?

### resize

    public void resize(int newSize)

  Resize the queue. If there are too many objects in the queue for the new size, drop the excess.

  Parameters:
    `newSize` -

Overview | Package | Class | Tree | Deprecated | Index | Help
| Apache Tomcat 6.0.51
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.