Interface DefaultPartitionedClientGroup.PartitionedClientFactory<U,R,Client>
-
- Type Parameters:
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 partitions
- Enclosing class:
- DefaultPartitionedClientGroup<U,R,Client extends ListenableAsyncCloseable>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface DefaultPartitionedClientGroup.PartitionedClientFactory<U,R,Client>
Factory for building partitioned clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Client
apply(PartitionAttributes pa, ServiceDiscoverer<U,R,ServiceDiscovererEvent<R>> psd)
Create a partitioned client.
-
-
-
Method Detail
-
apply
Client apply(PartitionAttributes pa, ServiceDiscoverer<U,R,ServiceDiscovererEvent<R>> psd)
Create a partitioned client.- Parameters:
pa
- thePartitionAttributes
for this clientpsd
- the partitionedServiceDiscoverer
- Returns:
- new client for the given arguments
-
-