|
Hi, would it be good enough if we were to allow to plug in some "hooks" to run at begin and end of each thread we use?
Something like:
public interface BatchingThreadContext {
void begin();
void end();
}
And we'd allow to set it on the MassIndexer:
MassIndexer threadLifecycleHooks(BatchingThreadContext hooks);
|