Cleanup old concepts
[yangtools.git] / yang / yang-common / src / main / java / org / opendaylight / yangtools / yang / common / RpcResult.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.yangtools.yang.common;
9
10 import java.util.Collection;
11
12 /**
13  * Represents a general result of a call, request, or operation.
14  *
15  * @param <T> the result value type
16  */
17 @Deprecated
18 public interface RpcResult<T> {
19
20     /**
21      * Returns whether or not processing of the call was successful.
22      *
23      * @return true if processing was successful, false otherwise.
24      */
25     boolean isSuccessful();
26
27     /**
28      * Returns the value result of the call or null if no result is available.
29      */
30     T getResult();
31
32     /**
33      * Returns a set of errors and warnings which occurred during processing
34      * the call.
35      *
36      * @return a Collection of {@link RpcError}
37      */
38     Collection<RpcError> getErrors();
39 }