Package org.hibernate.search.backend.impl

Examples of org.hibernate.search.backend.impl.PostTransactionWorkQueueSynchronization.afterCompletion()


    }
    else {
      WorkQueue workQueue = new BatchLuceneWorkQueue( documentBuilders, lockableDirectoryProviders );
      PostTransactionWorkQueueSynchronization sync = new PostTransactionWorkQueueSynchronization( workQueue );
      sync.add( work );
      sync.afterCompletion( Status.STATUS_COMMITTED );
    }
  }

  public Map<DirectoryProvider, ReentrantLock> getLockableDirectoryProviders() {
    return lockableDirectoryProviders;
View Full Code Here


    else {
      //no transaction work right away
      PostTransactionWorkQueueSynchronization sync =
          createWorkQueueSync( documentBuilders, lockableDirectoryProviders );
      sync.add( work );
      sync.afterCompletion( Status.STATUS_COMMITTED );
    }
  }

  private PostTransactionWorkQueueSynchronization createWorkQueueSync(
      Map<Class, DocumentBuilder<Object>> documentBuilders,
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.