Class NoShardAvailableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.streamnative.oxia.client.shard.NoShardAvailableException
- All Implemented Interfaces:
Serializable
A leader has not been assigned to the shard that maps to the key.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNoShardAvailableException(long shardId) Creates an instance of the exception.NoShardAvailableException(@NonNull String key) Creates an instance of the exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoShardAvailableException
Creates an instance of the exception.- Parameters:
key- The key specified in the call.
-
NoShardAvailableException
public NoShardAvailableException(long shardId) Creates an instance of the exception.- Parameters:
shardId- The shard id specified in the call.
-