Class RpcTimeoutException

All Implemented Interfaces:
Serializable

public final class RpcTimeoutException extends RpcException
Исключение, которое сообщает, что RPC-вызов не завершился в пределах timeout.

Exception indicating that an RPC call did not complete within the configured timeout.

Исключение содержит correlation id исходного запроса и timeout, после которого ожидание было прервано.

The exception contains the correlation id of the original request and the timeout after which waiting was interrupted.

See Also:
  • Constructor Details

    • RpcTimeoutException

      public RpcTimeoutException(long correlationId, long timeoutNs)
      Создаёт timeout-исключение для конкретного correlation id.

      Creates a timeout exception for a specific correlation id.

      Parameters:
      correlationId - идентификатор корреляции / request correlation id
      timeoutNs - timeout ожидания в наносекундах / timeout in nanoseconds
  • Method Details

    • correlationId

      public long correlationId()
      Возвращает correlation id запроса, который завершился по timeout.

      Returns the correlation id of the request that timed out.

      Returns:
      timed-out request correlation id
    • timeoutNs

      public long timeoutNs()
      Возвращает timeout ожидания в наносекундах.

      Returns the timeout value in nanoseconds.

      Returns:
      timeout value in nanoseconds