Class Client.PinnedClient

java.lang.Object
org.apache.tinkerpop.gremlin.driver.Client
org.apache.tinkerpop.gremlin.driver.Client.PinnedClient
All Implemented Interfaces:
RequestSubmitter, RequestSubmitterAsync
Enclosing class:
Client

public static class Client.PinnedClient extends Client
A Client that pins all requests of a single transaction to one Host. Used internally by transactions; obtain one indirectly via Cluster.transact() or Cluster.transact(String) rather than directly.

This is a lightweight routing view that owns no connection pools. All transactions share a single Client.ClusteredClient (one per Cluster) and borrow a connection per request from the pinned host's pool, returning it once the response completes. Those pools are closed when the Cluster closes, never by this client.