X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-clustering-commons%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2FDataPersistenceProvider.java;h=c655dcdb891488b52f1f42741046594e9651a5e6;hp=d136d45bc7aa6bbfb4ea9d0092f24a4e849c10fe;hb=8d8e440aa795660349714241ec64fdf4b462b378;hpb=4e696d9795fe7eef40369c05c340d137394126f3 diff --git a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/DataPersistenceProvider.java b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/DataPersistenceProvider.java index d136d45bc7..c655dcdb89 100644 --- a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/DataPersistenceProvider.java +++ b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/DataPersistenceProvider.java @@ -26,7 +26,7 @@ public interface DataPersistenceProvider { boolean isRecoveryApplicable(); /** - * Persists an entry to he applicable synchronously. + * Persists an entry to the applicable journal synchronously. * * @param entry the journal entry to persist * @param procedure the callback when persistence is complete @@ -34,6 +34,15 @@ public interface DataPersistenceProvider { */ void persist(T entry, Procedure procedure); + /** + * Persists an entry to the applicable journal asynchronously. + * + * @param entry the journal entry to persist + * @param procedure the callback when persistence is complete + * @param the type of the journal entry + */ + void persistAsync(T entry, Procedure procedure); + /** * Saves a snapshot. *