blob: 43fd6943f3a5914fdf70c62e8166c6121b92cad4 [file] [log] [blame]
alshabib26834582014-10-08 20:15:46 -07001package org.onlab.onos.net.flow;
2
3import java.util.List;
4
5/**
6 * Interface capturing the result of a batch operation.
7 *
8 */
9public 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}