Interface TypedReadTransaction<D extends Datastore>

  • Type Parameters:
    D - The logical datastore handled by the transaction.
    All Superinterfaces:
    org.opendaylight.yangtools.concepts.Identifiable<java.lang.Object>, org.opendaylight.mdsal.binding.api.Transaction
    All Known Subinterfaces:
    TypedReadWriteTransaction<D>

    @Deprecated(forRemoval=true)
    public interface TypedReadTransaction<D extends Datastore>
    extends org.opendaylight.mdsal.binding.api.Transaction
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use TypedReadTransaction instead.
    Read transaction which is specific to a single logical datastore (configuration or operational). Designed for use with ManagedNewTransactionRunner (it doesn’t support explicit cancel or commit operations).
    See Also:
    ReadTransaction
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      com.google.common.util.concurrent.FluentFuture<java.lang.Boolean> exists​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> path)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Determines if an object exists at the given path.
      <T extends org.opendaylight.yangtools.yang.binding.DataObject>
      com.google.common.util.concurrent.FluentFuture<java.util.Optional<T>>
      read​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Reads an object from the given path.
      • Methods inherited from interface org.opendaylight.yangtools.concepts.Identifiable

        getIdentifier
    • Method Detail

      • read

        <T extends org.opendaylight.yangtools.yang.binding.DataObject> com.google.common.util.concurrent.FluentFuture<java.util.Optional<T>> read​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Reads an object from the given path.
        Type Parameters:
        T - The type of the expected object.
        Parameters:
        path - The path to read from.
        Returns:
        A future providing access to the result of the read, when it’s available, or any error encountered.
        See Also:
        ReadOperations.read(LogicalDatastoreType, InstanceIdentifier)
      • exists

        com.google.common.util.concurrent.FluentFuture<java.lang.Boolean> exists​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> path)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Determines if an object exists at the given path.
        Parameters:
        path - The path to read from.
        Returns:
        A future providing access to the result of the check, when it’s available, or any error encountered.
        See Also:
        ReadOperations.exists(LogicalDatastoreType, InstanceIdentifier)