Package org.red5.cache
Interface ICacheable
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
CacheableImpl
Base interface for objects that can be made cacheable.
- Author:
- The Red5 Project, Paul Gregoire ([email protected])
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.mina.core.buffer.IoBufferReturns a readonly byte buffer.byte[]getBytes()Returns the object contained within the cacheable reference.getName()Returns the name of the cached object.booleanisCached()Returnstrueif the object is cached,falseotherwise.voidsetCached(boolean cached) Sets a flag to represent the cached status of a cacheable object.voidSet the name of the cached object.
-
Method Details
-
isCached
boolean isCached()Returnstrueif the object is cached,falseotherwise.- Returns:
trueif object is cached,falseotherwise
-
setCached
void setCached(boolean cached) Sets a flag to represent the cached status of a cacheable object.- Parameters:
cached-trueif object is cached,falseotherwise
-
getName
String getName()Returns the name of the cached object.- Returns:
- Object name
-
setName
Set the name of the cached object.- Parameters:
name- New object name
-
getBytes
byte[] getBytes()Returns the object contained within the cacheable reference.- Returns:
- Cached representation of object
-
getByteBuffer
org.apache.mina.core.buffer.IoBuffer getByteBuffer()Returns a readonly byte buffer.- Returns:
- Read-only IoBuffer with cached data
-