Interface StorageAccessor

    • Method Detail

      • insertRecord

        boolean insertRecord​(@NotNull
                             @NotNull LockConfiguration lockConfiguration)
        Inserts a record, if it does not already exists. If it exists, returns false.
        Parameters:
        lockConfiguration - LockConfiguration
        Returns:
        true if inserted
      • updateRecord

        boolean updateRecord​(@NotNull
                             @NotNull LockConfiguration lockConfiguration)
        Tries to update the lock record. If there is already a valid lock record (the lock is held by someone else) update should not do anything and this method returns false.
        Parameters:
        lockConfiguration - LockConfiguration
        Returns:
        true if updated
      • extend

        default boolean extend​(@NotNull
                               @NotNull LockConfiguration lockConfiguration)