Removed checkstyle warnings.
[bgpcep.git] / programming / spi / src / main / java / org / opendaylight / bgpcep / programming / spi / InstructionScheduler.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.bgpcep.programming.spi;
9
10 import com.google.common.util.concurrent.ListenableFuture;
11
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.programming.rev130930.SubmitInstructionInput;
13
14 public interface InstructionScheduler {
15     /**
16      * Schedule a new instruction for execution. This method tries to enqueue an instruction. It will return a Future
17      * which represents the scheduling progress. When the future becomes successful, the requestor is expected to start
18      * executing on the instruction, as specified by the {@link Instruction} contract.
19      *
20      * @param input Instruction scheduling information
21      * @return Scheduling future.
22      *
23      * @throws SchedulerException if a failure to schedule the instruction occurs.
24      */
25     ListenableFuture<Instruction> scheduleInstruction(SubmitInstructionInput input) throws SchedulerException;
26 }