Class ManagedChannelImpl.ConfigSelectingClientCall<ReqT,​RespT>

  • Enclosing class:
    ManagedChannelImpl

    static final class ManagedChannelImpl.ConfigSelectingClientCall<ReqT,​RespT>
    extends ForwardingClientCall<ReqT,​RespT>
    A client call for a given channel that applies a given config selector when it starts.
    • Method Detail

      • cancel

        public void cancel​(@Nullable
                           java.lang.String message,
                           @Nullable
                           java.lang.Throwable cause)
        Description copied from class: ClientCall
        Prevent any further processing for this ClientCall. No further messages may be sent or will be received. The server is informed of cancellations, but may not stop processing the call. Cancellation is permitted even if previously ClientCall.halfClose()d. Cancelling an already cancel()ed ClientCall has no effect.

        No other methods on this class can be called after this method has been called.

        It is recommended that at least one of the arguments to be non-null, to provide useful debug information. Both argument being null may log warnings and result in suboptimal performance. Also note that the provided information will not be sent to the server.

        Overrides:
        cancel in class PartialForwardingClientCall<ReqT,​RespT>
        Parameters:
        message - if not null, will appear as the description of the CANCELLED status
        cause - if not null, will appear as the cause of the CANCELLED status