Top Description Inners Fields Constructors Methods
com.thoughtworks.xstream.core.util

public Class Pool

extends Object
Class Inheritance

A simple pool implementation.
Authors
Jörg Schaible, Joe Walnes

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface

Field Summary

Modifier and TypeField and Description
private final Pool.Factory
private final int
private final int
private transient Object
private transient int
private transient Object[]

Constructor Summary

AccessConstructor and Description
public
Pool(int initialPoolSize, int maxPoolSize, Pool.Factory factory)

Method Summary

Modifier and TypeMethod and Description
public Object
protected void
putInPool(Object object)

private Object
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

factoryback to summary
private final Pool.Factory factory
initialPoolSizeback to summary
private final int initialPoolSize
maxPoolSizeback to summary
private final int maxPoolSize
mutexback to summary
private transient Object mutex
nextAvailableback to summary
private transient int nextAvailable
poolback to summary
private transient Object[] pool

Constructor Detail

Poolback to summary
public Pool(int initialPoolSize, int maxPoolSize, Pool.Factory factory)

Method Detail

fetchFromPoolback to summary
public Object fetchFromPool()
putInPoolback to summary
protected void putInPool(Object object)
readResolveback to summary
private Object readResolve()
com.thoughtworks.xstream.core.util back to summary

public Interface Pool.Factory


Method Summary

Modifier and TypeMethod and Description
public Object

Method Detail

newInstanceback to summary
public Object newInstance()