All Packages Class Hierarchy This Package Previous Next Index
Class org.webmacro.broker.ResourceManager
java.lang.Object
|
+----org.webmacro.broker.ResourceManager
- public final class ResourceManager
- extends Object
- implements ResourceMap
-
get(String)
- Get the resource matching te supplied name
-
getExpireTime()
- What expire time are we currently using?
-
put(String, Object)
- Add the resource matching the supplied name
-
remove(String)
- Remove the resource matching the supplied name
-
setExpireTime(int)
- Set the expire time for the cache.
-
toString()
- Get a string representing this ResourceManager, suitable for
debugging purposes.
toString
public final String toString()
- Get a string representing this ResourceManager, suitable for
debugging purposes.
- Overrides:
- toString in class Object
getExpireTime
public long getExpireTime()
- What expire time are we currently using?
setExpireTime
public void setExpireTime(int expireTime)
- Set the expire time for the cache. Valid values include any positive
integer (number of milliseconds), or the cache control constants
defined in ResourceProvider: ResourceProvider.NEVER_CACHE (never
cache a resource) or ResourceProvider.INFINITE_CACHE (cache resources
forever).
get
public final ResourceEvent get(String name) throws InvalidArgumentException, ResourceUnavailableException
- Get the resource matching te supplied name
remove
public final void remove(String name) throws InvalidArgumentException, ResourceUnavailableException
- Remove the resource matching the supplied name
put
public final ResourceEvent put(String name,
Object argument) throws InvalidArgumentException, ResourceUnavailableException
- Add the resource matching the supplied name
All Packages Class Hierarchy This Package Previous Next Index