wsky / top-link

embedded duplex multi-channel endpoint and connection management for c#/java/...
6 stars 1 forks source link

add LRU/random send to EndpointProxy #47

Closed wsky closed 11 years ago

wsky commented 11 years ago
    private ChannelSender getSenders(ChannelSender sender) throws ChannelException {
        if (this.senders.isEmpty())
            throw new ChannelException(Text.E_NO_SENDER);
        if (this.senders.contains(sender))
            return sender;
        return this.senders.get(0);
    }

currently, alwasy get(0), change to random or LRU