Skip to content

Set fields of NoResponseListener same as HostAvailabilityListener #828

@srinathgit

Description

@srinathgit

Currently, in order to modify the suspend time or min hosts, we have to individually set them in both HostUnavailableListener and NoResponseListener .

HostAvailabilityListener.getInstance(batcher).withSuspendTimeForHostUnavailable(Duration.ofSeconds(2)).withMinHosts(3);
NoResponseListener.getInstance(batcher).withSuspendTimeForHostUnavailable(Duration.ofSeconds(2)).withMinHosts(3);

Given the fact that NoResponseListener's processFailure is called only when the server goes down, can we by default set HostAvailabilityListener's suspend time , min hosts and other fields for NoResponseListener as well and not expose the getInstance method for NoResponseListener ?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions