Interface NodeIdHolder

    • Method Detail

      • getOwnerNodeId

        @Nullable
        String getOwnerNodeId()
        Returns:
        id of the owning node or null if this id is not known
      • getExpirationTime

        int getExpirationTime()
        Returns:
        expiration time in seconds from the current time
      • setOwnerNodeId

        void setOwnerNodeId​(@NotNull
                            String nodeId,
                            @Nullable
                            Date expirationTime,
                            @Nullable
                            NodeIdHolder.NodeIdOrigin nodeIdOrigin)
        Sets a new id of the owning node.
        Parameters:
        nodeId - id of the node
        expirationTime - expiration time for the specified node id, or null if there is no expiration time