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.FluentFuture;
11 import javax.ws.rs.core.Response.Status;
12 import org.opendaylight.mdsal.common.api.CommitInfo;
15 * Wrapper for status and future of PUT operation.
17 public class PutResult {
18 private final Status status;
19 private final FluentFuture<? extends CommitInfo> future;
22 * Wrap status and future by constructor - make this immutable.
25 * status of operations
27 * result of submit of PUT operation
29 public PutResult(final Status status, final FluentFuture<? extends CommitInfo> future) {
37 * @return {@link Status} result
39 public Status getStatus() {
46 * @return {@link FluentFuture} result
48 public FluentFuture<? extends CommitInfo> getFutureOfPutData() {