|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.red5.server.cache.CacheableImpl
public class CacheableImpl
Provides an implementation of a cacheable object.
| Field Summary | |
|---|---|
protected ApplicationContext |
applicationContext
|
protected static Logger |
log
|
| Constructor Summary | |
|---|---|
CacheableImpl(IoBuffer buffer)
|
|
CacheableImpl(Object obj)
|
|
| Method Summary | |
|---|---|
void |
addRequest()
|
IoBuffer |
getByteBuffer()
Returns a readonly byte buffer. |
byte[] |
getBytes()
Returns the object contained within the cacheable reference. |
String |
getName()
Returns the name of the cached object. |
boolean |
isCached()
Returns true if the object is cached, false
otherwise. |
void |
setCached(boolean cached)
Sets a flag to represent the cached status of a cacheable object. |
void |
setName(String name)
Set the name of the cached object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Logger log
protected ApplicationContext applicationContext
| Constructor Detail |
|---|
public CacheableImpl(Object obj)
public CacheableImpl(IoBuffer buffer)
| Method Detail |
|---|
public void addRequest()
public byte[] getBytes()
getBytes in interface ICacheablepublic IoBuffer getByteBuffer()
getByteBuffer in interface ICacheablepublic String getName()
getName in interface ICacheablepublic boolean isCached()
true if the object is cached, false
otherwise.
isCached in interface ICacheabletrue if object is cached, false otherwisepublic void setCached(boolean cached)
setCached in interface ICacheablecached - true if object is cached, false otherwisepublic void setName(String name)
setName in interface ICacheablename - New object name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||