BackendBusyException
public
class
BackendBusyException
extends ProviderException
java.lang.Object | |||||
↳ | java.lang.Throwable | ||||
↳ | java.lang.Exception | ||||
↳ | java.lang.RuntimeException | ||||
↳ | java.security.ProviderException | ||||
↳ | android.security.keystore.BackendBusyException |
Indicates a transient error that prevented a key operation from being created.
Callers should try again with a back-off period of getBackOffHintMillis()
milliseconds.
Summary
Public constructors | |
---|---|
BackendBusyException(long backOffHintMillis)
Constructs a new |
|
BackendBusyException(long backOffHintMillis, String message)
Constructs a new |
|
BackendBusyException(long backOffHintMillis, String message, Throwable cause)
Constructs a new |
Public methods | |
---|---|
long
|
getBackOffHintMillis()
When retrying to start a Keystore operation after receiving this exception, this can be used to determine how long to wait before retrying. |
Inherited methods | |
---|---|
Public constructors
BackendBusyException
public BackendBusyException (long backOffHintMillis)
Constructs a new BackendBusyException
without detail message and cause.
Parameters | |
---|---|
backOffHintMillis |
long : Value is a non-negative duration in milliseconds. |
BackendBusyException
public BackendBusyException (long backOffHintMillis, String message)
Constructs a new BackendBusyException
with the provided detail message and
no cause.
Parameters | |
---|---|
backOffHintMillis |
long : Value is a non-negative duration in milliseconds. |
message |
String : This value cannot be null . |
BackendBusyException
public BackendBusyException (long backOffHintMillis, String message, Throwable cause)
Constructs a new BackendBusyException
with the provided detail message and
cause.
Parameters | |
---|---|
backOffHintMillis |
long : Value is a non-negative duration in milliseconds. |
message |
String : This value cannot be null . |
cause |
Throwable : This value cannot be null . |
Public methods
getBackOffHintMillis
public long getBackOffHintMillis ()
When retrying to start a Keystore operation after receiving this exception, this can be
used to determine how long to wait before retrying. It is not guaranteed that the operation
will succeeds after this time. Multiple retries may be necessary if the system is congested.
Value is a non-negative duration in milliseconds.
Returns | |
---|---|
long |
Number of milliseconds to back off before retrying. Value is a non-negative duration in milliseconds. |