railo.runtime.cache
Class CacheConnectionImpl

java.lang.Object
  extended by railo.runtime.cache.CacheConnectionImpl
All Implemented Interfaces:
CacheConnection

public class CacheConnectionImpl
extends Object
implements CacheConnection


Constructor Summary
CacheConnectionImpl(Config config, String name, Class clazz, Struct custom, boolean readOnly, boolean storage)
           
 
Method Summary
 CacheConnection duplicate(Config config)
           
 Class getClazz()
           
 Struct getCustom()
           
 Cache getInstance(Config config)
           
 String getName()
           
 boolean isReadOnly()
           
 boolean isStorage()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CacheConnectionImpl

public CacheConnectionImpl(Config config,
                           String name,
                           Class clazz,
                           Struct custom,
                           boolean readOnly,
                           boolean storage)
                    throws CacheException
Throws:
CacheException
Method Detail

getInstance

public Cache getInstance(Config config)
                  throws IOException
Specified by:
getInstance in interface CacheConnection
Throws:
IOException

getName

public String getName()
Specified by:
getName in interface CacheConnection
Returns:
the name

getClazz

public Class getClazz()
Specified by:
getClazz in interface CacheConnection
Returns:
the clazz

getCustom

public Struct getCustom()
Specified by:
getCustom in interface CacheConnection
Returns:
the custom

toString

public String toString()
Overrides:
toString in class Object

duplicate

public CacheConnection duplicate(Config config)
                          throws IOException
Specified by:
duplicate in interface CacheConnection
Throws:
IOException

isReadOnly

public boolean isReadOnly()
Specified by:
isReadOnly in interface CacheConnection
Returns:
the readOnly

isStorage

public boolean isStorage()
Specified by:
isStorage in interface CacheConnection


Copyright © 2012 Railo