Skip to content

Have in the TransportAllocator also the ClusterKey #1

Open
@ado2000

Description

@ado2000

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions