public interface IPersistable
Input
,
IPersistenceStore.load(String)
Modifier and Type | Field and Description |
---|---|
static String |
TRANSIENT_PREFIX
Prefix for attribute names that should not be made persistent.
|
Modifier and Type | Method and Description |
---|---|
void |
deserialize(org.red5.io.object.Input input)
Load the object from the passed input stream.
|
long |
getLastModified()
Returns the timestamp when the object was last modified.
|
String |
getName()
Returns the name of the persistent object.
|
String |
getPath()
Returns the path of the persistent object.
|
IPersistenceStore |
getStore()
Returns the persistence store this object is stored in
|
String |
getType()
Returns the type of the persistent object.
|
boolean |
isPersistent()
Returns
|
void |
serialize(org.red5.io.object.Output output)
Write the object to the passed output stream.
|
void |
setName(String name)
Set the name of the persistent object.
|
void |
setPath(String path)
Set the path of the persistent object.
|
void |
setPersistent(boolean persistent)
Set the persistent flag of the object.
|
void |
setStore(IPersistenceStore store)
Store a reference to the persistence store in the object.
|
static final String TRANSIENT_PREFIX
boolean isPersistent()
trueif the object is persistent,
falseotherwise.
trueif object is persistent,
falseotherwise
void setPersistent(boolean persistent)
persistent
- trueif object is persistent,
falseotherwise
String getName()
void setName(String name)
name
- New object nameString getType()
String getPath()
void setPath(String path)
path
- New persisted object pathlong getLastModified()
IPersistenceStore getStore()
void setStore(IPersistenceStore store)
store
- Store the object is saved invoid serialize(org.red5.io.object.Output output) throws IOException
output
- Output stream to write toIOException
- Any I/O exceptionvoid deserialize(org.red5.io.object.Input input) throws IOException
input
- Input stream to load fromIOException
- Any I/O exceptionCopyright © 2005–2019 Red5. All rights reserved.