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.
|
void |
setDirty(boolean dirty)
Sets a "dirty" flag to indicate that the attributes have been modified.
|
getDepth, getName, getParent, getPath, getStore, getType, hasParent, isConnectionAllowed, isScopeAllowed, isValid, setKeepDelay, setSecurityHandlersdispatchEventhandleEventnotifyEventaddEventListener, getEventListeners, removeEventListeneraddSharedObjectListener, beginUpdate, beginUpdate, clear, close, endUpdate, getData, getVersion, isLocked, isPersistent, lock, removeSharedObjectListener, sendMessage, unlockregisterServiceHandler, unregisterServiceHandlergetServiceHandler, getServiceHandlerNames, registerServiceHandlergetBoolAttribute, getByteAttribute, getDoubleAttribute, getIntAttribute, getListAttribute, getLongAttribute, getMapAttribute, getSetAttribute, getShortAttribute, getStringAttributegetAttribute, getAttribute, getAttributeNames, getAttributes, hasAttribute, removeAttribute, removeAttributes, setAttribute, setAttributes, setAttributes, sizegetSharedObjectSecurity, registerSharedObjectSecurity, unregisterSharedObjectSecurityvoid acquire()
acquiremust be paired with a call to
releaseso the SO isn't held forever. This method basically is a no-op for persistent SOs as their data is stored and they can be released without losing their contents.
boolean isAcquired()
trueif the SO is acquired, otherwise
false
void release()
ISharedObjectStatistics getStatistics()
void setDirty(boolean dirty)
dirty - if dirty / modifiedCopyright © 2005–2017 Red5. All rights reserved.