...
- StreamsNotStartedException: will be thrown when stream thread state is CREATED, the user can retry until to RUNNING.
- StreamsRebalancingException: will be thrown when stream thread is not running and stream state is REBALANCING, the user just retry and wait until rebalance finished (RUNNING).
- StateStoreMigratedException: will be thrown when state store already closed and stream state is RUNNING. The user need to rediscover the store and cannot blindly retry as the store handle is invalid and a new store handle must be retrived.
- StateStoreNotAvailableException: will be thrown when state store closed and stream state is PENDING_SHUTDOWN / NOT_RUNNING / ERROR. The user cannot retry when this exception is thrown.
- UnknownStateStoreException: will be thrown when passing an unknown state store. The user cannot retry when this exception is thrown.
- InvalidStateStorePartitionException: will be thrown when user requested partition is not available on the stream instance.
The following is the public methods that users will call to get state store instance:
- KafkaStreams
- @Deprecated store(storeName, queryableStoreType)
- store(storeQureyParams)
Info |
---|
Throw All the above methods could be throw exceptions: StreamsNotStartedException, StreamsRebalancingException, StateStoreMigratedException, StateStoreNotAvailableException, UnknownStateStoreException, InvalidStateStorePartitionException |
The following is the public methods that users will call to get store values:
...
Info |
---|
All the above methods could be throw following exceptions: StreamsRebalancingException, StateStoreMigratedException, StateStoreNotAvailableException, InvalidStateStorePartitionException |
Compatibility, Deprecation, and Migration Plan
...