U - the type of address before resolution (unresolved address)R - the type of address after resolution (resolved address)Client - the type of client to connect to the partitionsClientGroup as an alternative or reach out to the maintainers describing
the use-case.@Deprecated
public final class DefaultPartitionedClientGroup<U,R,Client extends ListenableAsyncCloseable>
extends Object
implements ClientGroup<PartitionAttributes,Client>
ClientGroup that can be used for partitioned client use-cases where PartitionAttributes are discovered through PartitionedServiceDiscovererEvents.| Modifier and Type | Class and Description |
|---|---|
static interface |
DefaultPartitionedClientGroup.PartitionedClientFactory<U,R,Client>
Deprecated.
We are unaware of anyone using "partition" feature and plan to remove it in future releases.
If you depend on it, consider using
ClientGroup as an alternative or reach out to the maintainers
describing the use-case. |
| Constructor and Description |
|---|
DefaultPartitionedClientGroup(Function<PartitionAttributes,Client> closedPartitionClient,
Function<PartitionAttributes,Client> unknownPartitionClient,
DefaultPartitionedClientGroup.PartitionedClientFactory<U,R,Client> clientFactory,
PartitionMapFactory partitionMapFactory,
Publisher<PartitionedServiceDiscovererEvent<R>> psdEvents,
int psdMaxQueueSize)
Deprecated.
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Completable |
closeAsync()
Deprecated.
|
Completable |
closeAsyncGracefully()
Deprecated.
|
Client |
get(PartitionAttributes partitionAttributes)
Deprecated.
|
Completable |
onClose()
Deprecated.
|
Completable |
onClosing()
Deprecated.
|
public DefaultPartitionedClientGroup(Function<PartitionAttributes,Client> closedPartitionClient, Function<PartitionAttributes,Client> unknownPartitionClient, DefaultPartitionedClientGroup.PartitionedClientFactory<U,R,Client> clientFactory, PartitionMapFactory partitionMapFactory, Publisher<PartitionedServiceDiscovererEvent<R>> psdEvents, int psdMaxQueueSize)
closedPartitionClient - factory for clients that handle requests for a closed partitionunknownPartitionClient - factory for clients that handles requests for an unknown partitionclientFactory - used to create clients for newly discovered partitionspartitionMapFactory - factory to provide a PartitionMap implementation appropriate for the use-casepsdEvents - the stream of PartitionedServiceDiscovererEventspsdMaxQueueSize - max number of new partitions to queue uppublic Completable onClose()
onClose in interface ListenableAsyncCloseablepublic Completable onClosing()
onClosing in interface ListenableAsyncCloseablepublic Completable closeAsync()
closeAsync in interface AsyncCloseablepublic Completable closeAsyncGracefully()
closeAsyncGracefully in interface AsyncCloseable