org.red5.server.api.so
public interface ISharedObject extends IBasicScope, ISharedObjectBase, ISharedObjectSecurityService
BEAN_NAME
Modifier and Type | Method and Description |
---|---|
void |
acquire()
Prevent shared object from being released.
|
ISharedObjectStatistics |
getStatistics()
Return statistics about the shared object.
|
boolean |
isAcquired()
Check if shared object currently is acquired.
|
void |
release()
Release previously acquired shared object.
|
getDepth, getName, getParent, getPath, getStore, getType, hasParent, isValid, setKeepDelay
dispatchEvent
handleEvent
notifyEvent
addEventListener, getEventListeners, removeEventListener
addSharedObjectListener, beginUpdate, beginUpdate, clear, close, endUpdate, getData, getVersion, isLocked, isPersistent, lock, removeSharedObjectListener, sendMessage, unlock
registerServiceHandler, unregisterServiceHandler
getServiceHandler, getServiceHandlerNames, registerServiceHandler
getBoolAttribute, getByteAttribute, getDoubleAttribute, getIntAttribute, getListAttribute, getLongAttribute, getMapAttribute, getSetAttribute, getShortAttribute, getStringAttribute
getAttribute, getAttribute, getAttributeNames, getAttributes, hasAttribute, removeAttribute, removeAttributes, setAttribute, setAttributes, setAttributes
getSharedObjectSecurity, registerSharedObjectSecurity, unregisterSharedObjectSecurity
void acquire()
acquire
must be paired with a call to release
so the SO isn't held
forever.
This method basically is a noop for persistent SOs as their data is stored
and they can be released without losing their contents.boolean isAcquired()
true
if the SO is acquired, otherwise false
void release()
ISharedObjectStatistics getStatistics()
Copyright © 2006-2012 The Red5 Project