Class

com.dispalt.vitess

InterceptedClient

Related Doc: package vitess

Permalink

class InterceptedClient extends Client

Linear Supertypes
Client, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InterceptedClient
  2. Client
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new InterceptedClient(channel: Channel, keyspace: String, interceptors: ClientInterceptor*)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def begin()(implicit ctx: VitessCallerCtx, ec: ExecutionContext): Future[Option[Session]]

    Permalink

    Begin returns the session ticket, but also attaches it to the TransactionalExecutionContext if it's available.

    Begin returns the session ticket, but also attaches it to the TransactionalExecutionContext if it's available.

    ctx

    ctx

    ec

    ec

    Definition Classes
    Client
  6. val channel: Channel

    Permalink
    Definition Classes
    InterceptedClientClient
  7. def client(implicit ctx: VitessCallerCtx): VitessStub

    Permalink
    Definition Classes
    InterceptedClientClient
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def commit()(implicit ctx: VitessCallerCtx, ec: ExecutionContext): Future[Unit]

    Permalink

    commit finishes out the transaction, and nullifys the session ticket.

    commit finishes out the transaction, and nullifys the session ticket. It will throw a NotInTransaction if you do not have a valid TransactionalExecutionContext.

    Definition Classes
    Client
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def execute(query: BoundQuery, tabletType: TabletType)(implicit ctx: VitessCallerCtx, ec: ExecutionContext): RpcResponse

    Permalink

    This is a slightly less low-level call that really does two big things.

    This is a slightly less low-level call that really does two big things.

    1) it converts the result into something nice. 2) It handles threading the TxnEc. The way Session works is that every operation needs a session from the previous response of an operation to continue the txn. This uses the TxnEc to achieve that.

    Definition Classes
    Client
  13. def execute(query: String, bind: Map[String, _], tabletType: TabletType)(implicit ctx: VitessCallerCtx, ec: ExecutionContext): RpcResponse

    Permalink
    Definition Classes
    Client
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. val keyspace: String

    Permalink
    Definition Classes
    InterceptedClientClient
  19. val logger: Logger

    Permalink
    Definition Classes
    Client
  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. def rollback()(implicit ctx: VitessCallerCtx, ec: ExecutionContext): Future[_]

    Permalink

    See commit() but for rollbacks

    See commit() but for rollbacks

    Definition Classes
    Client
  24. def streamExecute(query: String, bind: Map[String, _], tabletType: TabletType)(observer: StreamObserver[Row])(implicit ctx: VitessCallerCtx, ec: ExecutionContext): Unit

    Permalink

    Executes the StreamExecuteRequest with vtgate, with some extra help for converting to rows.

    Executes the StreamExecuteRequest with vtgate, with some extra help for converting to rows. Below is some information about how fields vs values work.

    As returned by StreamExecute, the first QueryResult has the fields set, and subsequent QueryResult have rows set. And as Execute, len(QueryResult[0].fields) is always equal to len(row) (for each row in rows for each QueryResult in QueryResult[1:]).

    Definition Classes
    Client
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  27. def transaction[A](block: (TransactionalExecutionContext) ⇒ Future[A])(implicit ctx: VitessCallerCtx, ec: ExecutionContext): Future[A]

    Permalink

    Transaction takes a TransactionalExecutionContext => Future and handles all the cleanup of failed attempts etc.

    Transaction takes a TransactionalExecutionContext => Future and handles all the cleanup of failed attempts etc.

    Definition Classes
    Client
  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Client

Inherited from AnyRef

Inherited from Any

Ungrouped