org.objectweb.perseus.pool.lib
Class LArrayPool
java.lang.Object
org.objectweb.perseus.pool.lib.LArrayPool
- AttributeController, BindingController, Pool, PoolAttributes
public class LArrayPool
extends java.lang.Object
The class LArrayPool implements a Pool as an array of PoolResource,
managing free/active resources through lists of cells encapsulating the
resources.
- P.Dechamboux
void | bindFc(String clientItfName, Object serverItf)
|
int | getMaxSize() - getMaxSize retrieves the maximum size assigned to this Pool.
|
int | getMinSize() - getMinSize retrieves the minimum size assigned to this Pool.
|
Object | getResource(Object hints)
|
Object | getResource(Object hints, Object user)
|
int | getSize()
|
long | getTTL() - getTTL retrieves the time to live of pool
resources (in milisecond).
|
long | getTimeout() - getTimeout retrieves the timeout assigned to this Pool.
|
String[] | listFc()
|
Object | lookupFc(String clientItfName)
|
void | releaseResource(Object resource)
|
void | setMaxSize(int maxsize) - setMaxSize assigns a maximum size to this Pool.
|
void | setMinSize(int minsize) - setMinSize assigns a minimum size to this Pool.
|
void | setTTL(long ttl) - setTTL assignes the time (in milisecond) to live of pool
resources.
|
void | setTimeout(long crto) - setTimeout assigns a timeout to this Pool.
|
void | unbindFc(String clientItfName)
|
POOL_MATCH_FACTORY_BINDING
public static final String POOL_MATCH_FACTORY_BINDING
bindFc
public void bindFc(String clientItfName,
Object serverItf)
getMaxSize
public int getMaxSize()
getMaxSize retrieves the maximum size assigned to this Pool.
- getMaxSize in interface PoolAttributes
- The maximum size currently assigned to this Pool.
getMinSize
public int getMinSize()
getMinSize retrieves the minimum size assigned to this Pool.
- getMinSize in interface PoolAttributes
- The minimum size currently assigned to this Pool.
getTTL
public long getTTL()
getTTL retrieves the time to live of pool
resources (in milisecond).
- getTTL in interface PoolAttributes
getTimeout
public long getTimeout()
getTimeout retrieves the timeout assigned to this Pool.
- getTimeout in interface PoolAttributes
- The timeout currently assigned to this Pool.
listFc
public String[] listFc()
lookupFc
public Object lookupFc(String clientItfName)
setMaxSize
public void setMaxSize(int maxsize)
setMaxSize assigns a maximum size to this Pool.
- setMaxSize in interface PoolAttributes
maxsize
- The maximum size to be assigned.
setMinSize
public void setMinSize(int minsize)
setMinSize assigns a minimum size to this Pool.
- setMinSize in interface PoolAttributes
minsize
- The minimum size to be assigned.
setTTL
public void setTTL(long ttl)
setTTL assignes the time (in milisecond) to live of pool
resources. If the value is lesser or equal to 0 then pool resources do
not have a TTL.
- setTTL in interface PoolAttributes
setTimeout
public void setTimeout(long crto)
setTimeout assigns a timeout to this Pool.
- setTimeout in interface PoolAttributes
crto
- The timeout to be assigned.
unbindFc
public void unbindFc(String clientItfName)
Copyright © 2000-2002 France Telecom S.A., INRIA, IMAG-LSR All Rights Reserved.