public void addWork(CorePipelineEvent event)
{
long sequenceId = ringBuffer.next();
DatabaseWork work = ringBuffer.get(sequenceId);
if(!event.hasFailed()) {
work.reset(
event.getEndpoint(),
event.getChannel(),
event.getIsPersistentConnection(),
event.getPath(),
event.getTransactionId(),
event.getTransactionMode(),
event.getPathVariables(),
event.getDeserializedContent(),
database,
txs,
txManage);
} else {
work.reset(
event.getChannel(),
event.getIsPersistentConnection(),
event.getTransactionId(),
event.getTransactionMode(),
database,