Java Code Examples for com.alibaba.dubbo.remoting.exchange.ExchangeClient#isConnected()
The following examples show how to use
com.alibaba.dubbo.remoting.exchange.ExchangeClient#isConnected() .
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 | 6 votes |
@Override public boolean isAvailable() { if (!super.isAvailable()) { return false; } for (ExchangeClient client : clients){ if (client.isConnected() && !client.hasAttribute(Constants.CHANNEL_ATTRIBUTE_READONLY_KEY)){ //cannot write == not Available ? return true ; } } return false; }
Example 2
Source File: ThriftInvoker.java From dubbox with Apache License 2.0 | 6 votes |
@Override public boolean isAvailable() { if (!super.isAvailable()) { return false; } for (ExchangeClient client : clients){ if (client.isConnected() && !client.hasAttribute(Constants.CHANNEL_ATTRIBUTE_READONLY_KEY)){ //cannot write == not Available ? return true ; } } return false; }
Example 3
Source File: ThriftInvoker.java From dubbox with Apache License 2.0 | 6 votes |
@Override public boolean isAvailable() { if (!super.isAvailable()) { return false; } for (ExchangeClient client : clients){ if (client.isConnected() && !client.hasAttribute(Constants.CHANNEL_ATTRIBUTE_READONLY_KEY)){ //cannot write == not Available ? return true ; } } return false; }
Example 4
Source File: ThriftInvoker.java From dubbox with Apache License 2.0 | 6 votes |
@Override public boolean isAvailable() { if (!super.isAvailable()) { return false; } for (ExchangeClient client : clients){ if (client.isConnected() && !client.hasAttribute(Constants.CHANNEL_ATTRIBUTE_READONLY_KEY)){ //cannot write == not Available ? return true ; } } return false; }
Example 5
Source File: ThriftInvoker.java From dubbox with Apache License 2.0 | 6 votes |
@Override public boolean isAvailable() { if (!super.isAvailable()) { return false; } for (ExchangeClient client : clients){ if (client.isConnected() && !client.hasAttribute(Constants.CHANNEL_ATTRIBUTE_READONLY_KEY)){ //cannot write == not Available ? return true ; } } return false; }
Example 6
Source File: ThriftInvoker.java From dubbo-2.6.5 with Apache License 2.0 | 6 votes |
@Override public boolean isAvailable() { if (!super.isAvailable()) { return false; } for (ExchangeClient client : clients) { if (client.isConnected() && !client.hasAttribute(Constants.CHANNEL_ATTRIBUTE_READONLY_KEY)) { //cannot write == not Available ? return true; } } return false; }
Example 7
Source File: DubboInvoker.java From dubbox with Apache License 2.0 | 5 votes |
@Override public boolean isAvailable() { if (!super.isAvailable()) return false; for (ExchangeClient client : clients){ if (client.isConnected() && !client.hasAttribute(Constants.CHANNEL_ATTRIBUTE_READONLY_KEY)){ //cannot write == not Available ? return true ; } } return false; }
Example 8
Source File: DubboInvoker.java From dubbox-hystrix with Apache License 2.0 | 5 votes |
@Override public boolean isAvailable() { if (!super.isAvailable()) return false; for (ExchangeClient client : clients){ if (client.isConnected() && !client.hasAttribute(Constants.CHANNEL_ATTRIBUTE_READONLY_KEY)){ //cannot write == not Available ? return true ; } } return false; }
Example 9
Source File: DubboInvoker.java From dubbo3 with Apache License 2.0 | 5 votes |
@Override public boolean isAvailable() { if (!super.isAvailable()) return false; for (ExchangeClient client : clients) { if (client.isConnected() && !client.hasAttribute(Constants.CHANNEL_ATTRIBUTE_READONLY_KEY)) { //cannot write == not Available ? return true; } } return false; }
Example 10
Source File: DubboInvoker.java From dubbox with Apache License 2.0 | 5 votes |
@Override public boolean isAvailable() { if (!super.isAvailable()) return false; for (ExchangeClient client : clients){ if (client.isConnected() && !client.hasAttribute(Constants.CHANNEL_ATTRIBUTE_READONLY_KEY)){ //cannot write == not Available ? return true ; } } return false; }
Example 11
Source File: DubboInvoker.java From dubbo-2.6.5 with Apache License 2.0 | 5 votes |
@Override public boolean isAvailable() { if (!super.isAvailable()) return false; for (ExchangeClient client : clients) { if (client.isConnected() && !client.hasAttribute(Constants.CHANNEL_ATTRIBUTE_READONLY_KEY)) { //cannot write == not Available ? return true; } } return false; }
Example 12
Source File: DubboInvoker.java From dubbox with Apache License 2.0 | 5 votes |
@Override public boolean isAvailable() { if (!super.isAvailable()) return false; for (ExchangeClient client : clients){ if (client.isConnected() && !client.hasAttribute(Constants.CHANNEL_ATTRIBUTE_READONLY_KEY)){ //cannot write == not Available ? return true ; } } return false; }
Example 13
Source File: ChanelHandlerTest.java From dubbox with Apache License 2.0 | 4 votes |
public static void closeClient(ExchangeClient client){ if(client.isConnected()){ client.close(); } }
Example 14
Source File: ChanelHandlerTest.java From dubbox-hystrix with Apache License 2.0 | 4 votes |
public static void closeClient(ExchangeClient client){ if(client.isConnected()){ client.close(); } }
Example 15
Source File: ChanelHandlerTest.java From dubbo-2.6.5 with Apache License 2.0 | 4 votes |
public static void closeClient(ExchangeClient client) { if (client.isConnected()) { client.close(); } }
Example 16
Source File: ChanelHandlerTest.java From dubbo3 with Apache License 2.0 | 4 votes |
public static void closeClient(ExchangeClient client){ if(client.isConnected()){ client.close(); } }
Example 17
Source File: ChanelHandlerTest.java From dubbox with Apache License 2.0 | 4 votes |
public static void closeClient(ExchangeClient client){ if(client.isConnected()){ client.close(); } }
Example 18
Source File: ChanelHandlerTest.java From dubbox with Apache License 2.0 | 4 votes |
public static void closeClient(ExchangeClient client){ if(client.isConnected()){ client.close(); } }