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

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

public class JIoEndpoint.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  JIoEndpoint.SocketInfo info
           
protected  int pos
           
protected  int size
           
protected  java.net.Socket[] sockets
           
protected  int[] timeouts
           
 
Constructor Summary
JIoEndpoint.SocketList(int size)
           
 
Method Summary
 boolean add(java.net.Socket socket, int timeout, int flag)
           
 void clear()
           
 void duplicate(JIoEndpoint.SocketList copy)
           
 JIoEndpoint.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 java.net.Socket[] sockets

timeouts

protected int[] timeouts

flags

protected int[] flags

info

protected JIoEndpoint.SocketInfo info
Constructor Detail

JIoEndpoint.SocketList

public JIoEndpoint.SocketList(int size)
Method Detail

size

public int size()

get

public JIoEndpoint.SocketInfo get()

clear

public void clear()

add

public boolean add(java.net.Socket socket,
                   int timeout,
                   int flag)

duplicate

public void duplicate(JIoEndpoint.SocketList copy)


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