blob: 33f1845593b63a9a7c8448ae2a7c4e5582929658 [file] [log] [blame]
alshabib26834582014-10-08 20:15:46 -07001package org.onlab.onos.net.flow;
2
Madan Jampani117aaae2014-10-23 10:04:05 -07003import java.util.Set;
alshabib26834582014-10-08 20:15:46 -07004
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 /**
Madan Jampani117aaae2014-10-23 10:04:05 -070018 * Obtains a set of items which failed.
19 * @return a set of failures
alshabib26834582014-10-08 20:15:46 -070020 */
Madan Jampani117aaae2014-10-23 10:04:05 -070021 Set<T> failedItems();
alshabib26834582014-10-08 20:15:46 -070022
23}