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 storetrueon success,
falseotherwise
IPersistable load(String name)
name - the name of the object to loadnullif no such object was found
boolean load(IPersistable obj)
obj - the object to initializboolean remove(IPersistable obj)
obj - the object to deletetrueif object was persisted and thus can be removed,
falseotherwise
boolean remove(String name)
name - the name of the object to deletetrueif object was persisted and thus can be removed,
falseotherwise
Set<String> getObjectNames()
Collection<IPersistable> getObjects()
void notifyClose()
Copyright © 2005–2017 Red5. All rights reserved.