blob: 166a12fe65f41153fbb3466ee5c2067b23f98aae [file] [log] [blame]
Toshio Koideb8cea262014-08-12 18:45:46 -07001package net.onrc.onos.api.flowmanager;
2
3/**
4 * Handle class to handle flow batch operation.
5 */
6public class FlowBatchHandle {
7 private final FlowBatchId batchId;
8
9 /**
10 * Creates a handle using batch operation ID.
11 * <p>
12 * The ID is automatically generated and assigned by FlowManager, and used
13 * as an internal key for the flow batch operation map.
14 *
15 * @param id the batch operation ID
16 */
17 public FlowBatchHandle(FlowBatchId id) {
18 batchId = id;
19 }
20
21 /**
22 * Gets the flow batch operation ID.
23 *
24 * @return the flow batch operation ID
25 */
26 public FlowBatchId getBatchOperationId() {
27 return batchId;
28 }
29}