blob: 248d82e872d0ed969b7e595b614b57e92f713388 [file] [log] [blame]
Brian O'Connorfa81eae2014-10-30 13:20:05 -07001/*
2 * Copyright 2014 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.onlab.onos.net.intent;
17
18/**
19 * Facade for receiving notifications from the intent batch service.
20 */
21public interface IntentBatchDelegate {
22
23 /**
24 * Submits the specified batch of intent operations for processing.
25 *
26 * @param operations batch of operations
27 */
28 void execute(IntentOperations operations);
29
30 /**
31 * Cancesl the specified batch of intent operations.
32 *
33 * @param operations batch of operations to be cancelled
34 */
35 void cancel(IntentOperations operations);
36}