v2.1.0
- [#33] added retry count field to event in persistent subscription listener:
PersistentSubscriptionListener.onEvent(PersistentSubscription, ResolvedEvent)
->PersistentSubscriptionListener.onEvent(PersistentSubscription, RetryableResolvedEvent)
- [#40] added TLS certificate file validation (
EventStoreBuilder.useSslConnection(new File("domain.csr"))
) - [#42] fixed missing node preference when building eventstore from settings
- [#43] fixed multiple reconnects
- [#44] fixed reconnection issue - on previous esjc versions when driver encounters channel failure (e.g: connection reset by server) it disconnects without triggering reconnection. Now it logs an error and reconnects. If for some reason, you need the previous behavior - use
EventStoreBuilder.disconnectOnTcpChannelError(true)
- fixed operations timeout check and retry on reconnect
EventStore.iterateXXXX
andEventStore.streamXXXX
methods throws specific exceptionsStreamNotFoundException
orStreamDeletedException
(wasIllegalStateException
)- changed subscription drop due overflow reason
SubscriptionDropReason.UserInitiated
->SubscriptionDropReason.ProcessingQueueOverflow
- added option to prefer master, slave or random node in cluster endpoint discoverer (
cluster.preferRandomNode(true)
->cluster.nodePreference(NodePreference.Random)
) - added
eventNumber
range check inEventStore.readStreamEventsBackward
method - added
EventStore.subscribeToPersistent(stream, groupName, listener, autoAck)
andEventStore.subscribeToPersistent(stream, groupName, listener, userCredentials, autoAck)
overloaded methods - added
EventStoreBuilder.defaultExecutor()
method - bumped netty version to 4.1.34.Final
- bumped gson version to 2.8.5
- bumped slf4j api version to 1.7.26
Many thanks to all committers!