BUG-58: refactor to take advantage of netty
[bgpcep.git] / framework / src / main / java / org / opendaylight / protocol / framework / ReconnectStrategy.java
index e1fb14c9c30e45bf472c406f402ad8494b79e642..bbbff39411aef6526272fbbfd37a4ea842fbc3c4 100644 (file)
@@ -38,11 +38,12 @@ public interface ReconnectStrategy {
         * should be attempted is signaled by successful completion of returned
         * future.
         * 
+        * @param cause Cause of previous failure
         * @return a future tracking the schedule, may not be null
         * @throws IllegalStateException when a connection attempt is currently
         *         scheduled.
         */
-       public Future<Void> scheduleReconnect();
+       public Future<Void> scheduleReconnect(Throwable cause);
 
        /**
         * Reset the strategy state. Users call this method once the reconnection