org.red5.server.api.persistence
public interface IPersistenceStore
Modifier and Type | Method and Description |
---|---|
Set<String> |
getObjectNames()
Return iterator over the names of all already loaded objects in the
storage.
|
Collection<IPersistable> |
getObjects()
Return iterator over the already loaded objects in the storage.
|
boolean |
load(IPersistable obj)
Load state of an already instantiated persistent object.
|
IPersistable |
load(String name)
Load a persistent object with the given name.
|
void |
notifyClose()
Notify store that it's being closed.
|
boolean |
remove(IPersistable obj)
Delete the passed persistent object.
|
boolean |
remove(String name)
Delete the persistent object with the given name.
|
boolean |
save(IPersistable obj)
Persist given object.
|
boolean save(IPersistable obj)
obj
- Object to storetrue
on success, false
otherwiseIPersistable load(String name)
name
- the name of the object to loadnull
if no such object was
foundboolean load(IPersistable obj)
obj
- the object to initializboolean remove(IPersistable obj)
obj
- the object to deletetrue
if object was persisted and thus can be removed, false
otherwiseboolean remove(String name)
name
- the name of the object to deletetrue
if object was persisted and thus can be removed, false
otherwiseSet<String> getObjectNames()
Collection<IPersistable> getObjects()
void notifyClose()
Copyright © 2006-2012 The Red5 Project