public class CacheableImpl extends Object implements ICacheable
| Modifier and Type | Field and Description |
|---|---|
protected 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 ApplicationContext applicationContext
public CacheableImpl(Object obj)
public CacheableImpl(org.apache.mina.core.buffer.IoBuffer buffer)
public void addRequest()
public byte[] getBytes()
getBytes in interface ICacheablepublic org.apache.mina.core.buffer.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 nameCopyright © 2005–2017 Red5. All rights reserved.