Interface ISharedObjectMessage

All Superinterfaces:
IEvent, IRTMPEvent
All Known Implementing Classes:
FlexSharedObjectMessage, SharedObjectMessage

public interface ISharedObjectMessage extends IRTMPEvent
Shared object message
  • Method Details

    • getName

      String getName()
      Returns the name of the shared object this message belongs to.
      Returns:
      name of the shared object
    • getVersion

      int getVersion()
      Returns the version to modify.
      Returns:
      version to modify
    • isPersistent

      boolean isPersistent()
      Does the message affect a persistent shared object?
      Returns:
      true if a persistent shared object should be updated otherwise false
    • getEvents

      Set<ISharedObjectEvent> getEvents()
      Returns a set of ISharedObjectEvent objects containing informations what to change.
      Returns:
      set of ISharedObjectEvents
    • addEvent

      boolean addEvent(ISharedObjectEvent.Type type, String key, Object value)
      Addition event handler
      Parameters:
      type - Event type
      key - Handler key
      value - Event value (like arguments)
      Returns:
      true if event is added and false if it is not added
    • addEvent

      boolean addEvent(ISharedObjectEvent event)
      Add event handler
      Parameters:
      event - SO event
      Returns:
      true if event is added and false if it is not added
    • clear

      void clear()
      Clear shared object
    • isEmpty

      boolean isEmpty()
      Is empty?
      Returns:
      true if shared object is empty, false otherwise