001package io.ebeanservice.docstore.api; 002 003import java.io.IOException; 004 005/** 006 * For persist events that know how to publish or queue their change to the Document store. 007 */ 008public interface DocStoreUpdate { 009 010 /** 011 * Add the event to the doc store bulk update. 012 */ 013 void docStoreUpdate(DocStoreUpdateContext txn) throws IOException; 014 015 /** 016 * Add to the queue for deferred processing. 017 */ 018 void addToQueue(DocStoreUpdates docStoreUpdates); 019}