Split Restconf implementations (draft02 and RFC) - move
[netconf.git] / restconf / restconf-nb-bierman02 / src / main / java / org / opendaylight / restconf / restful / utils / FutureDataFactory.java
1 /*
2  * Copyright (c) 2016 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.restconf.restful.utils;
9
10 /**
11  * Future data factory.
12  *
13  * @deprecated move to splitted module restconf-nb-rfc8040
14  */
15 @Deprecated
16 class FutureDataFactory<T> {
17
18     protected T result;
19     private boolean statusFail = false;
20
21     void setResult(final T result) {
22         this.result = result;
23     }
24
25     void setFailureStatus() {
26         this.statusFail = true;
27     }
28
29     boolean getFailureStatus() {
30         return statusFail;
31     }
32
33 }