Class ReindexService


  • @Component
    public class ReindexService
    extends Object
    Service that does the reindexing for one OCFL object.
    Author:
    whikloj
    • Method Detail

      • cleanupSession

        public void cleanupSession​(String transactionId)
        Remove persistent sessions for a transaction to avoid memory leaks.
        Parameters:
        transactionId - the transaction id.
      • setMembershipPageSize

        public void setMembershipPageSize​(int pageSize)
        Set the membership page size.
        Parameters:
        pageSize - the new page size.
      • reset

        public void reset()
        Reset all the indexes.
      • indexMembership

        public void indexMembership​(Transaction transaction)
        Index all membership properties by querying for Direct containers, and then trying population of the membership index for each one
        Parameters:
        transaction - the transaction id.
      • rollbackMembership

        public void rollbackMembership​(@NotNull
                                       @NotNull Transaction tx)
        Rollback changes in the transaction.
        Parameters:
        tx - the transaction