Interface AnyRpcClientContext

All Known Implementing Classes:
GrpcClientContext

public interface AnyRpcClientContext
RPC-agnostic client-side RPC context. An instance of this class is used for one RPC call.
  • Method Details

    • getApplicationError

      int getApplicationError()
    • getErrorDetail

      String getErrorDetail()
    • getStartTimeMillis

      long getStartTimeMillis()
    • getStatus

      com.google.apphosting.base.protos.Status.StatusProto getStatus()
    • getException

      Throwable getException()
    • setDeadline

      void setDeadline(double seconds)
      Set the deadline that will be applied to the RPC call made using this context. If this method is never called, there is no deadline.
      Throws:
      IllegalArgumentException - if the deadline is negative or too long. The maximum allowed deadline is unspecified, but is at least some number of years.
    • startCancel

      void startCancel()