|
||||||||||
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 ICacheable
public IoBuffer getByteBuffer()
getByteBuffer
in interface ICacheable
public String getName()
getName
in interface ICacheable
public boolean isCached()
true
if the object is cached, false
otherwise.
isCached
in interface ICacheable
true
if object is cached, false
otherwisepublic void setCached(boolean cached)
setCached
in interface ICacheable
cached
- true
if object is cached, false
otherwisepublic void setName(String name)
setName
in interface ICacheable
name
- New object name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |