if you look at FlushEventListener, basically you could hook the right calls in there
onFlush() {
prepareDialect()
//delegate to the rigt flusheventlistener impl
askDialectToEndBatch
}
that's probably the easiest way
you also need to deal with AutoflushEventListener to be complete
Though delegation might not work for auto flushes as you have not checked if flush was really needed.
If the prepare and ask phase of the dialect for an empty workset is very lightweight, that's not a problem and the delegation can still work.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Summary of a discussion on IRC
if you look at FlushEventListener, basically you could hook the right calls in there
onFlush() { prepareDialect() //delegate to the rigt flusheventlistener impl askDialectToEndBatch }
that's probably the easiest way
you also need to deal with AutoflushEventListener to be complete
Though delegation might not work for auto flushes as you have not checked if flush was really needed.
If the prepare and ask phase of the dialect for an empty workset is very lightweight, that's not a problem and the delegation can still work.