2 * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.netconf.sal.restconf.impl;
10 import com.google.common.util.concurrent.CheckedFuture;
11 import javax.ws.rs.core.Response.Status;
12 import org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException;
15 * Wrapper for status and future of PUT operation.
18 public class PutResult {
19 private final Status status;
20 private final CheckedFuture<Void, TransactionCommitFailedException> future;
23 * Wrap status and future by constructor - make this immutable.
26 * status of operations
28 * result of submit of PUT operation
30 public PutResult(final Status status, final CheckedFuture<Void, TransactionCommitFailedException> future) {
38 * @return {@link Status} result
40 public Status getStatus() {
47 * @return {@link CheckedFuture} result
49 public CheckedFuture<Void, TransactionCommitFailedException> getFutureOfPutData() {