Class RpcTimeoutException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ru.pathcreator.pyc.rpc.core.exceptions.RpcException
ru.pathcreator.pyc.rpc.core.exceptions.RpcTimeoutException
- All Implemented Interfaces:
Serializable
Исключение, которое сообщает, что 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 Summary
ConstructorsConstructorDescriptionRpcTimeoutException(long correlationId, long timeoutNs) Создаёт timeout-исключение для конкретного correlation id. -
Method Summary
Modifier and TypeMethodDescriptionlongВозвращает correlation id запроса, который завершился по timeout.longВозвращает timeout ожидания в наносекундах.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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 idtimeoutNs- 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
-