public class CacheableImpl extends Object implements ICacheable
Modifier and Type | Field and Description |
---|---|
protected org.springframework.context.ApplicationContext |
applicationContext |
protected static org.slf4j.Logger |
log |
Constructor and Description |
---|
CacheableImpl(org.apache.mina.core.buffer.IoBuffer buffer) |
CacheableImpl(Object obj) |
Modifier and Type | Method and Description |
---|---|
void |
addRequest() |
org.apache.mina.core.buffer.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.
|
protected static org.slf4j.Logger log
protected org.springframework.context.ApplicationContext applicationContext
public CacheableImpl(Object obj)
public CacheableImpl(org.apache.mina.core.buffer.IoBuffer buffer)
public void addRequest()
public byte[] getBytes()
getBytes
in interface ICacheable
public org.apache.mina.core.buffer.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 nameCopyright © 2006-2012 The Red5 Project