Package com.tuladb
Class LedgerClient.LedgerTimeoutException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.io.InterruptedIOException
java.net.SocketTimeoutException
com.tuladb.LedgerClient.LedgerTimeoutException
- All Implemented Interfaces:
Serializable
- Enclosing class:
LedgerClient
A connect, TLS handshake, write or read did not finish in time.
The connection has been closed: the reply to a timed-out request may
still arrive, and must not be read as the next request's. Later calls fail
with "client is not connected" until LedgerClient.reconnect() or
LedgerClient.connect() (the smart client, the pool and the buffered clients
reconnect on their own). A timed-out write may still have been applied by
the server, so retry it with the same txnId.
Extends SocketTimeoutException, which is what a read timeout
threw before, so existing handlers still catch it.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class java.io.InterruptedIOException
bytesTransferred -
Constructor Summary
ConstructorsConstructorDescriptionLedgerTimeoutException(LedgerClient.LedgerTimeoutException.Phase phase, int timeoutMs, String endpoint, Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LedgerTimeoutException
public LedgerTimeoutException(LedgerClient.LedgerTimeoutException.Phase phase, int timeoutMs, String endpoint, Throwable cause)
-
-
Method Details
-
phase
-
timeoutMs
public int timeoutMs()
-