Java Code Examples for com.alibaba.dubbo.common.Constants#TOKEN_KEY

The following examples show how to use com.alibaba.dubbo.common.Constants#TOKEN_KEY . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ThriftInvoker.java    From dubbox-hystrix with Apache License 2.0 5 votes vote down vote up
public ThriftInvoker(Class<T> type, URL url, ExchangeClient[] clients, Set<Invoker<?>> invokers) {
    super(type, url,
          new String[]{Constants.INTERFACE_KEY, Constants.GROUP_KEY,
                  Constants.TOKEN_KEY, Constants.TIMEOUT_KEY});
    this.clients = clients;
    this.invokers = invokers;
}
 
Example 2
Source File: ThriftInvoker.java    From dubbox with Apache License 2.0 5 votes vote down vote up
public ThriftInvoker(Class<T> type, URL url, ExchangeClient[] clients, Set<Invoker<?>> invokers) {
    super(type, url,
          new String[]{Constants.INTERFACE_KEY, Constants.GROUP_KEY,
                  Constants.TOKEN_KEY, Constants.TIMEOUT_KEY});
    this.clients = clients;
    this.invokers = invokers;
}
 
Example 3
Source File: DubboInvoker.java    From dubbox with Apache License 2.0 5 votes vote down vote up
public DubboInvoker(Class<T> serviceType, URL url, ExchangeClient[] clients, Set<Invoker<?>> invokers){
    super(serviceType, url, new String[] {Constants.INTERFACE_KEY, Constants.GROUP_KEY, Constants.TOKEN_KEY, Constants.TIMEOUT_KEY});
    this.clients = clients;
    // get version.
    this.version = url.getParameter(Constants.VERSION_KEY, "0.0.0");
    this.invokers = invokers; 
}
 
Example 4
Source File: ChannelWrappedInvoker.java    From dubbox with Apache License 2.0 5 votes vote down vote up
public ChannelWrappedInvoker(Class<T> serviceType, Channel channel, URL url, String serviceKey) {

        super(serviceType, url, new String[] { Constants.GROUP_KEY,
                Constants.TOKEN_KEY, Constants.TIMEOUT_KEY });
        this.channel = channel;
        this.serviceKey = serviceKey;
    }
 
Example 5
Source File: ThriftInvoker.java    From dubbox with Apache License 2.0 5 votes vote down vote up
public ThriftInvoker(Class<T> type, URL url, ExchangeClient[] clients, Set<Invoker<?>> invokers) {
    super(type, url,
          new String[]{Constants.INTERFACE_KEY, Constants.GROUP_KEY,
                  Constants.TOKEN_KEY, Constants.TIMEOUT_KEY});
    this.clients = clients;
    this.invokers = invokers;
}
 
Example 6
Source File: DubboInvoker.java    From dubbox with Apache License 2.0 5 votes vote down vote up
public DubboInvoker(Class<T> serviceType, URL url, ExchangeClient[] clients, Set<Invoker<?>> invokers){
    super(serviceType, url, new String[] {Constants.INTERFACE_KEY, Constants.GROUP_KEY, Constants.TOKEN_KEY, Constants.TIMEOUT_KEY});
    this.clients = clients;
    // get version.
    this.version = url.getParameter(Constants.VERSION_KEY, "0.0.0");
    this.invokers = invokers; 
}
 
Example 7
Source File: ChannelWrappedInvoker.java    From dubbox with Apache License 2.0 5 votes vote down vote up
public ChannelWrappedInvoker(Class<T> serviceType, Channel channel, URL url, String serviceKey) {

        super(serviceType, url, new String[] { Constants.GROUP_KEY,
                Constants.TOKEN_KEY, Constants.TIMEOUT_KEY });
        this.channel = channel;
        this.serviceKey = serviceKey;
    }
 
Example 8
Source File: DubboInvoker.java    From dubbo3 with Apache License 2.0 5 votes vote down vote up
public DubboInvoker(Class<T> serviceType, URL url, ExchangeClient[] clients, Set<Invoker<?>> invokers) {
    super(serviceType, url, new String[]{Constants.INTERFACE_KEY, Constants.GROUP_KEY, Constants.TOKEN_KEY, Constants.TIMEOUT_KEY});
    this.clients = clients;
    // get version.
    this.version = url.getParameter(Constants.VERSION_KEY, "0.0.0");
    this.invokers = invokers;
}
 
Example 9
Source File: ChannelWrappedInvoker.java    From dubbo3 with Apache License 2.0 5 votes vote down vote up
public ChannelWrappedInvoker(Class<T> serviceType, Channel channel, URL url, String serviceKey) {

        super(serviceType, url, new String[] { Constants.GROUP_KEY,
                Constants.TOKEN_KEY, Constants.TIMEOUT_KEY });
        this.channel = channel;
        this.serviceKey = serviceKey;
    }
 
Example 10
Source File: ThriftInvoker.java    From dubbo-2.6.5 with Apache License 2.0 5 votes vote down vote up
public ThriftInvoker(Class<T> type, URL url, ExchangeClient[] clients, Set<Invoker<?>> invokers) {
    super(type, url,
            new String[]{Constants.INTERFACE_KEY, Constants.GROUP_KEY,
                    Constants.TOKEN_KEY, Constants.TIMEOUT_KEY});
    this.clients = clients;
    this.invokers = invokers;
}
 
Example 11
Source File: DubboInvoker.java    From dubbox-hystrix with Apache License 2.0 5 votes vote down vote up
public DubboInvoker(Class<T> serviceType, URL url, ExchangeClient[] clients, Set<Invoker<?>> invokers){
    super(serviceType, url, new String[] {Constants.INTERFACE_KEY, Constants.GROUP_KEY, Constants.TOKEN_KEY, Constants.TIMEOUT_KEY});
    this.clients = clients;
    // get version.
    this.version = url.getParameter(Constants.VERSION_KEY, "0.0.0");
    this.invokers = invokers; 
}
 
Example 12
Source File: ChannelWrappedInvoker.java    From dubbox-hystrix with Apache License 2.0 5 votes vote down vote up
public ChannelWrappedInvoker(Class<T> serviceType, Channel channel, URL url, String serviceKey) {

        super(serviceType, url, new String[] { Constants.GROUP_KEY,
                Constants.TOKEN_KEY, Constants.TIMEOUT_KEY });
        this.channel = channel;
        this.serviceKey = serviceKey;
    }
 
Example 13
Source File: ThriftInvoker.java    From dubbox with Apache License 2.0 5 votes vote down vote up
public ThriftInvoker(Class<T> type, URL url, ExchangeClient[] clients, Set<Invoker<?>> invokers) {
    super(type, url,
          new String[]{Constants.INTERFACE_KEY, Constants.GROUP_KEY,
                  Constants.TOKEN_KEY, Constants.TIMEOUT_KEY});
    this.clients = clients;
    this.invokers = invokers;
}
 
Example 14
Source File: ThriftInvoker.java    From dubbox with Apache License 2.0 5 votes vote down vote up
public ThriftInvoker(Class<T> type, URL url, ExchangeClient[] clients, Set<Invoker<?>> invokers) {
    super(type, url,
          new String[]{Constants.INTERFACE_KEY, Constants.GROUP_KEY,
                  Constants.TOKEN_KEY, Constants.TIMEOUT_KEY});
    this.clients = clients;
    this.invokers = invokers;
}
 
Example 15
Source File: DubboInvoker.java    From dubbox with Apache License 2.0 5 votes vote down vote up
public DubboInvoker(Class<T> serviceType, URL url, ExchangeClient[] clients, Set<Invoker<?>> invokers){
    super(serviceType, url, new String[] {Constants.INTERFACE_KEY, Constants.GROUP_KEY, Constants.TOKEN_KEY, Constants.TIMEOUT_KEY});
    this.clients = clients;
    // get version.
    this.version = url.getParameter(Constants.VERSION_KEY, "0.0.0");
    this.invokers = invokers; 
}
 
Example 16
Source File: ChannelWrappedInvoker.java    From dubbox with Apache License 2.0 5 votes vote down vote up
public ChannelWrappedInvoker(Class<T> serviceType, Channel channel, URL url, String serviceKey) {

        super(serviceType, url, new String[] { Constants.GROUP_KEY,
                Constants.TOKEN_KEY, Constants.TIMEOUT_KEY });
        this.channel = channel;
        this.serviceKey = serviceKey;
    }
 
Example 17
Source File: DubboInvoker.java    From dubbo-2.6.5 with Apache License 2.0 5 votes vote down vote up
public DubboInvoker(Class<T> serviceType, URL url, ExchangeClient[] clients, Set<Invoker<?>> invokers) {
    super(serviceType, url, new String[]{Constants.INTERFACE_KEY, Constants.GROUP_KEY, Constants.TOKEN_KEY, Constants.TIMEOUT_KEY});
    this.clients = clients;
    // get version.
    this.version = url.getParameter(Constants.VERSION_KEY, "0.0.0");
    this.invokers = invokers;
}
 
Example 18
Source File: ChannelWrappedInvoker.java    From dubbo-2.6.5 with Apache License 2.0 4 votes vote down vote up
ChannelWrappedInvoker(Class<T> serviceType, Channel channel, URL url, String serviceKey) {
    super(serviceType, url, new String[]{Constants.GROUP_KEY, Constants.TOKEN_KEY, Constants.TIMEOUT_KEY});
    this.channel = channel;
    this.serviceKey = serviceKey;
    this.currentClient = new HeaderExchangeClient(new ChannelWrapper(this.channel), false);
}