blob: 5bb2bdceae7356d6d859a341d0e373a10a7db38a [file] [log] [blame]
alshabib2a441c62015-04-13 18:39:38 -07001/*
2 * Copyright 2015 Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.net.flowobjective;
17
Thomas Vachuskaa9d491e2015-05-20 11:17:21 -070018import com.google.common.annotations.Beta;
19
alshabib2a441c62015-04-13 18:39:38 -070020/**
21 * The context of a objective that will become the subject of
22 * the notification.
23 *
24 * Implementations of this class must be serializable.
25 */
Thomas Vachuskaa9d491e2015-05-20 11:17:21 -070026@Beta
alshabib2a441c62015-04-13 18:39:38 -070027public interface ObjectiveContext {
28
29 default void onSuccess(Objective objective) {}
30
31 default void onError(Objective objective, ObjectiveError error) {}
32
33}