Fix NPE in YangTextSchemaSourceSerializationProxy#getRepresentation
[controller.git] / opendaylight / md-sal / sal-clustering-commons / src / main / java / org / opendaylight / controller / cluster / DataPersistenceProvider.java
index d136d45bc7aa6bbfb4ea9d0092f24a4e849c10fe..c655dcdb891488b52f1f42741046594e9651a5e6 100644 (file)
@@ -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 {
      */
     <T> void persist(T entry, Procedure<T> 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 <T> the type of the journal entry
+     */
+    <T> void persistAsync(T entry, Procedure<T> procedure);
+
     /**
      * Saves a snapshot.
      *