Interface ISharedObjectSlot


  • public interface ISharedObjectSlot

    ISharedObjectSlot: public interface to SharedObjectSlot class.

    • Method Detail

      • init

        void init​(String name,
                  AMFData data,
                  int slotVersion)
        Initialize shared object slot
        Parameters:
        name - slot (property) name
        data - data
        slotVersion - version
      • getData

        AMFData getData()
        Get slot data as AMFData object.
        Returns:
        slot data as AMFData object
      • setData

        void setData​(byte[] data,
                     AMFDataContextDeserialize context)
        Set slot data as byte[]. Data will be deserialized as AMFData object.
        Parameters:
        data - data as byte[]
        context - deserialization context
      • setData

        void setData​(byte[] data)
        Set slot data as byte[]. Data will be deserialized as AMFData object.
        Parameters:
        data - data as byte[]
      • setData

        void setData​(AMFData data)
        Set slot data as AMFData object.
        Parameters:
        data - data as AMFData object
      • getName

        String getName()
        Get slot (property) name.
        Returns:
        slot (property) name
      • setName

        void setName​(String name)
        Set slot (property) name
        Parameters:
        name - slot (property) name
      • getSlotVersion

        int getSlotVersion()
        Get slot version
        Returns:
        slot version
      • setSlotVersion

        void setSlotVersion​(int slotVersion)
        Set slot version
        Parameters:
        slotVersion - slot version
      • incSlotVersion

        void incSlotVersion()
        Increment slot version by 1.
      • getSoVersion

        int getSoVersion()
        Get parent shared object version
        Returns:
        parent shared object version
      • setSoVersion

        void setSoVersion​(int soVersion)
        Set parent shared object version
        Parameters:
        soVersion - parent shared object version
      • getLastOperation

        int getLastOperation()
        Get last slot (property) operation. See ISharedObject.SHAREDOBJECT_CMD_*.
        Returns:
        last slot (property) operation (ISharedObject.SHAREDOBJECT_CMD_*)
      • setLastOperation

        void setLastOperation​(int lastOperation)
        Set last slot (property) operation. See ISharedObject.SHAREDOBJECT_CMD_*.
        Parameters:
        lastOperation - last slot (property) operation (ISharedObject.SHAREDOBJECT_CMD_*)
      • getLastClientId

        int getLastClientId()
        Get client id of client that performaned last operation on slot.
        Returns:
        client id of client that performaned last operation on slot
      • setLastClientId

        void setLastClientId​(int lastClientId)
        Set client id of client that performaned last operation on slot.
        Parameters:
        lastClientId - client id of client that performaned last operation on slot