Interface ISharedObject

All Superinterfaces:
AttributeStoreMXBean, IAttributeStore, IBasicScope, ICastingAttributeStore, ICoreObject, IEventDispatcher, IEventHandler, IEventListener, IEventObservable, IScopeService, IServiceHandlerProvider, ISharedObjectBase, ISharedObjectHandlerProvider, ISharedObjectSecurityService
All Known Implementing Classes:
SharedObjectScope

public interface ISharedObject extends IBasicScope, ISharedObjectBase, ISharedObjectSecurityService
Serverside access to shared objects.
Author:
The Red5 Project, Joachim Bauch (jojo@struktur.de)
  • Method Details

    • acquire

      void acquire()
      Prevent shared object from being released. Each call to
       acquire
       
      must be paired with a call to
       release
       
      so 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.
    • isAcquired

      boolean isAcquired()
      Check if shared object currently is acquired.
      Returns:
       true
       
      if the SO is acquired, otherwise
       false
       
    • release

      void release()
      Release previously acquired shared object. If the SO is non-persistent, no more clients are connected the SO isn't acquired any more, the data is released.
    • getStatistics

      ISharedObjectStatistics getStatistics()
      Return statistics about the shared object.
      Returns:
      statistics
    • setDirty

      @Deprecated void setDirty(boolean dirty)
      Deprecated.
      Sets a "dirty" flag to indicate that the attributes have been modified.
      Parameters:
      dirty - if dirty / modified
    • setDirty

      void setDirty(String name)
      Sets a "dirty" flag to indicate that the named attribute has been modified.
      Parameters:
      name - attribute key which is now dirty