Search Results for

    Show / Hide Table of Contents

    Class RemoteStrategy

    Reconstructs a ITraversal by submitting it to a remote server via an IRemoteConnection instance.

    Inheritance
    object
    RemoteStrategy
    Implements
    ITraversalStrategy
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Gremlin.Net.Process.Remote
    Assembly: Gremlin.Net.dll
    Syntax
    public class RemoteStrategy : ITraversalStrategy

    Constructors

    RemoteStrategy(IRemoteConnection)

    Initializes a new instance of the RemoteStrategy class.

    Declaration
    public RemoteStrategy(IRemoteConnection remoteConnection)
    Parameters
    Type Name Description
    IRemoteConnection remoteConnection

    The IRemoteConnection that should be used.

    Methods

    ApplyAsync<TStart, TEnd>(ITraversal<TStart, TEnd>, CancellationToken)

    Applies the strategy to the given ITraversal asynchronously.

    Declaration
    public Task ApplyAsync<TStart, TEnd>(ITraversal<TStart, TEnd> traversal, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    ITraversal<TStart, TEnd> traversal

    The ITraversal the strategy should be applied to.

    CancellationToken cancellationToken

    The token to cancel the operation. The default value is None.

    Returns
    Type Description
    Task
    Type Parameters
    Name Description
    TStart
    TEnd

    Apply<TStart, TEnd>(ITraversal<TStart, TEnd>)

    Applies the strategy to the given ITraversal.

    Declaration
    public void Apply<TStart, TEnd>(ITraversal<TStart, TEnd> traversal)
    Parameters
    Type Name Description
    ITraversal<TStart, TEnd> traversal

    The ITraversal the strategy should be applied to.

    Type Parameters
    Name Description
    TStart
    TEnd

    Implements

    ITraversalStrategy
    In this article
    Back to top Copyright © 2018 The Apache Software Foundation