Class PlatformDotNetSessionData

    • Constructor Detail

      • PlatformDotNetSessionData

        public PlatformDotNetSessionData()
    • Method Detail

      • items

        public Map<String,​byte[]> items()
        Returns:
        Items.
      • staticObjects

        public byte[] staticObjects()
        Returns:
        Static objects.
      • timeout

        public int timeout()
        Returns:
        Timeout.
      • lockId

        public long lockId()
        Returns:
        Lock ID.
      • lockNodeId

        public UUID lockNodeId()
        Returns:
        Lock node ID.
      • lockTime

        public Timestamp lockTime()
        Returns:
        Lock time.
      • isLocked

        public boolean isLocked()
        Returns:
        True if locked.
      • lock

        public PlatformDotNetSessionData lock​(UUID lockNodeId,
                                              long lockId,
                                              Timestamp lockTime)
        Locks the session state data.
        Parameters:
        lockNodeId - Lock node ID.
        lockId - Lock ID.
        lockTime - Lock time.
        Returns:
        Unlocked data copy.
      • unlock

        public PlatformDotNetSessionData unlock​(UUID lockNodeId,
                                                long lockId)
        Unlocks the session state data.
        Parameters:
        lockNodeId - Lock node ID.
        lockId - Lock ID.
        Returns:
        Unlocked data copy.
      • updateAndUnlock

        public PlatformDotNetSessionData updateAndUnlock​(UUID lockNodeId,
                                                         long lockId,
                                                         Map<String,​byte[]> items,
                                                         boolean isDiff,
                                                         byte[] staticObjects,
                                                         int timeout)
        Update session state and release the lock.
        Parameters:
        lockNodeId - Lock node ID.
        lockId - Lock ID.
        items - Items.
        isDiff - Diff flag.
        staticObjects - Static objects.
        timeout - Timeout.
        Returns:
        Result.
      • writeBinary

        public void writeBinary​(BinaryRawWriter writer)
        Writes to a binary writer.
        Parameters:
        writer - Binary writer.
      • readBinary

        public void readBinary​(BinaryRawReader reader)
        Reads from a binary reader.
        Parameters:
        reader - Reader.