Open
Description
Hi, very nice software,
I’m trying to use your Clustered object pool to create a socket pool used to send email.
What I need is to have in the TransportAllocator also the ClusterKey
Something like this:
class TransportAllocator extends Allocator<Socket> {
private static final Logger LOGGER = getLogger(TransportAllocator.class);
@NotNull
private final String domain;
private final String ipAddressToBind;
TransportAllocator(@NotNull final String ipAddressToBind, @NotNull final String domain) {
this.domain = domain;
this. ipAddressToBind = ipAddressToBind;
}
public Socket allocate() { ……….
The idea is to use a ClusterKey for each local IPaddress and a PoolKey for each destination domain.
So, width IPaddress and destination domain. I can connect the socket properly
is it possible ?
Thanks
Metadata
Metadata
Assignees
Labels
No labels