commit | f6ea9e624bf03d090f280bab848ec7cd66f7105a | [log] [tgz] |
---|---|---|
author | alshabib <alshabibi.ali@gmail.com> | Tue Apr 21 17:08:26 2015 -0700 |
committer | alshabib <alshabibi.ali@gmail.com> | Tue Apr 21 17:08:26 2015 -0700 |
tree | 39c4f1a319903c54b3bc2818083f7f6aa1fc24ea | |
parent | 08d9898714452f71980987137c6043530edc2dd3 [diff] [blame] |
Implemented a globally unique next id generator in FlowObjectStore Change-Id: Ib98b2996e1ebcca56ad816ea94f25d838c5f4d44
diff --git a/core/api/src/main/java/org/onosproject/net/flowobjective/FlowObjectiveService.java b/core/api/src/main/java/org/onosproject/net/flowobjective/FlowObjectiveService.java index 690fcc7..fd6ac55 100644 --- a/core/api/src/main/java/org/onosproject/net/flowobjective/FlowObjectiveService.java +++ b/core/api/src/main/java/org/onosproject/net/flowobjective/FlowObjectiveService.java
@@ -47,4 +47,10 @@ */ void next(DeviceId deviceId, NextObjective nextObjective); + /** + * Obtains a globally unique next objective. + * @return an integer + */ + int allocateNextId(); + }