com.taobao.api.internal.toplink.channel.embedded.EmbeddedClientChannelSharedSelector Maven / Gradle / Ivy
The newest version!
package com.taobao.api.internal.toplink.channel.embedded;
import java.net.URI;
import com.taobao.api.internal.toplink.LoggerFactory;
import com.taobao.api.internal.toplink.channel.ChannelException;
import com.taobao.api.internal.toplink.channel.ClientChannel;
import com.taobao.api.internal.toplink.channel.ClientChannelSharedSelector;
public class EmbeddedClientChannelSharedSelector extends ClientChannelSharedSelector {
public EmbeddedClientChannelSharedSelector() {
super();
}
public EmbeddedClientChannelSharedSelector(LoggerFactory loggerFactory) {
super(loggerFactory);
}
protected ClientChannel connect(LoggerFactory loggerFactory, URI uri, int timeout) throws ChannelException {
return uri.getScheme().equalsIgnoreCase("ws") ||
uri.getScheme().equalsIgnoreCase("wss") ?
EmbeddedWebSocketClient.connect(loggerFactory, uri, timeout) :
super.connect(loggerFactory, uri, timeout);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy