X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=sxp-integration%2Fsxp-ep-provider%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fgroupbasedpolicy%2Fsxp%2Fep%2Fprovider%2Fimpl%2FDSAsyncDao.java;fp=sxp-integration%2Fsxp-ep-provider%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fgroupbasedpolicy%2Fsxp%2Fep%2Fprovider%2Fimpl%2FDSAsyncDao.java;h=c97a134773a3af637ed7174ab111c42da11b0364;hb=eace708ec9dd394c5eb7b74c46d1176d82e775e7;hp=0000000000000000000000000000000000000000;hpb=660f6fb82d48f2c43b92cd273593d49e3644bb41;p=groupbasedpolicy.git diff --git a/sxp-integration/sxp-ep-provider/src/main/java/org/opendaylight/groupbasedpolicy/sxp/ep/provider/impl/DSAsyncDao.java b/sxp-integration/sxp-ep-provider/src/main/java/org/opendaylight/groupbasedpolicy/sxp/ep/provider/impl/DSAsyncDao.java new file mode 100644 index 000000000..c97a13477 --- /dev/null +++ b/sxp-integration/sxp-ep-provider/src/main/java/org/opendaylight/groupbasedpolicy/sxp/ep/provider/impl/DSAsyncDao.java @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ + +package org.opendaylight.groupbasedpolicy.sxp.ep.provider.impl; + +import com.google.common.base.Optional; +import com.google.common.util.concurrent.ListenableFuture; +import javax.annotation.Nonnull; +import org.opendaylight.yangtools.yang.binding.DataObject; + +/** + * Purpose: encapsulate access to DS by exposing + *
+ *
read
+ *
search through values (either in local cache or directly in DataStore)
+ *
+ * + * @param data key type + * @param data type + */ +public interface DSAsyncDao { + + /** + * @param key for search + * @return value found by key + */ + ListenableFuture> read(@Nonnull K key); + +}