I created a (not yet working) plugin for a time-dependent rolling
index which utilizes my old code of issue
I would like to create a periodic checking-thread.
- How would I create a singleton thread (only one per cluster)?
- Also '@Inject private RollAction action;' does not work in a plugin.
How can I inject an instance of RollAction into this singleton thread?
- at which central place can I put meta information to store that an
index creation was successful?
Or would you organize the flow in a different manner? In the issue someone
mentioned that instead of the very specific time-dependent use case I have
in mind he would trigger a more generic checking-method ala
'shouldIRollTheIndex' every time documents are feeded. Wouldn't this affect
performance in a bad manner or could this work?