org.hibernate.search.backend.impl
Interface StreamingOperationSelectionDelegate


public interface StreamingOperationSelectionDelegate

Sends a single operation to the related backends, considering the sharding strategy. This delegates to org.hibernate.search.indexes.spi.IndexManager#performStreamOperation(LuceneWork, boolean) so it's suited for streams of many LuceneWork operations which don't need strict ordering.

Author:
Sanne Grinovero

Method Summary
 void performStreamOperation(LuceneWork work, IndexShardingStrategy shardingStrategy, IndexingMonitor monitor, boolean forceAsync)
          The LuceneWork must be applied to different indexes.
 

Method Detail

performStreamOperation

void performStreamOperation(LuceneWork work,
                            IndexShardingStrategy shardingStrategy,
                            IndexingMonitor monitor,
                            boolean forceAsync)
The LuceneWork must be applied to different indexes.

Parameters:
work - the work to split.
shardingStrategy - the Sharding strategy is usually needed to identify affected Directories.
monitor - to receive notification of indexing operations
forceAsync - if true, the invocation will not block to wait for it being applied. When false this will depend on the backend configuration.


Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved