alshabib | 2683458 | 2014-10-08 20:15:46 -0700 | [diff] [blame] | 1 | package org.onlab.onos.net.flow; |
2 | |||||
3 | import java.util.List; | ||||
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 | /** | ||||
18 | * Obtains a list of items which failed. | ||||
19 | * @return a list of failures | ||||
20 | */ | ||||
21 | List<T> failedItems(); | ||||
22 | |||||
23 | } |