alshabib | 2683458 | 2014-10-08 20:15:46 -0700 | [diff] [blame] | 1 | package org.onlab.onos.net.flow; |
| 2 | |
Madan Jampani | 117aaae | 2014-10-23 10:04:05 -0700 | [diff] [blame^] | 3 | import java.util.Set; |
alshabib | 2683458 | 2014-10-08 20:15:46 -0700 | [diff] [blame] | 4 | |
| 5 | /** |
| 6 | * Interface capturing the result of a batch operation. |
| 7 | * |
| 8 | */ |
| 9 | public interface BatchOperationResult<T> { |
| 10 | |
| 11 | /** |
| 12 | * Returns whether the operation was successful. |
| 13 | * @return true if successful, false otherwise |
| 14 | */ |
| 15 | boolean isSuccess(); |
| 16 | |
| 17 | /** |
Madan Jampani | 117aaae | 2014-10-23 10:04:05 -0700 | [diff] [blame^] | 18 | * Obtains a set of items which failed. |
| 19 | * @return a set of failures |
alshabib | 2683458 | 2014-10-08 20:15:46 -0700 | [diff] [blame] | 20 | */ |
Madan Jampani | 117aaae | 2014-10-23 10:04:05 -0700 | [diff] [blame^] | 21 | Set<T> failedItems(); |
alshabib | 2683458 | 2014-10-08 20:15:46 -0700 | [diff] [blame] | 22 | |
| 23 | } |