org.apache.tomcat.util.net
Class AprEndpoint.SocketList

java.lang.Object
  extended by org.apache.tomcat.util.net.AprEndpoint.SocketList
Enclosing class:
AprEndpoint

public class AprEndpoint.SocketList
extends java.lang.Object

Socket list class, used to avoid using a possibly large amount of objects with very little actual use.


Field Summary
protected  int[] flags
           
protected  AprEndpoint.SocketInfo info
           
protected  int pos
           
protected  int size
           
protected  long[] sockets
           
protected  int[] timeouts
           
 
Constructor Summary
AprEndpoint.SocketList(int size)
           
 
Method Summary
 boolean add(long socket, int timeout, int flag)
           
 void clear()
           
 void duplicate(AprEndpoint.SocketList copy)
           
 AprEndpoint.SocketInfo get()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

size

protected int size

pos

protected int pos

sockets

protected long[] sockets

timeouts

protected int[] timeouts

flags

protected int[] flags

info

protected AprEndpoint.SocketInfo info
Constructor Detail

AprEndpoint.SocketList

public AprEndpoint.SocketList(int size)
Method Detail

size

public int size()

get

public AprEndpoint.SocketInfo get()

clear

public void clear()

add

public boolean add(long socket,
                   int timeout,
                   int flag)

duplicate

public void duplicate(AprEndpoint.SocketList copy)


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