railo.runtime.util.pool
Interface Pool


public interface Pool

Interface for a Pool


Method Summary
 boolean exists(Object key)
          checks if Object exists in Pool
 PoolHandler get(Object key)
          gets a Object from the pool
 boolean remove(Object key)
          remove a Object from the pool
 void set(Object key, PoolHandler handler)
          adds a new object to the pool, if object is already in the Pool, it will be overwritten
 

Method Detail

set

void set(Object key,
         PoolHandler handler)
adds a new object to the pool, if object is already in the Pool, it will be overwritten

Parameters:
key - key for the Objects
handler - pool handler object

get

PoolHandler get(Object key)
gets a Object from the pool

Parameters:
key - key for the Objects
Returns:

exists

boolean exists(Object key)
checks if Object exists in Pool

Parameters:
key - key for the Objects
Returns:
object exists or not

remove

boolean remove(Object key)
remove a Object from the pool

Parameters:
key - key for the Objects
Returns:


Copyright © 2012 Railo