Java Code Examples for org.glassfish.grizzly.Connection#isOpen()
The following examples show how to use
org.glassfish.grizzly.Connection#isOpen() .
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: GrizzlyChannel.java From dubbo-2.6.5 with Apache License 2.0 | 5 votes |
static GrizzlyChannel getOrAddChannel(Connection<?> connection, URL url, ChannelHandler handler) { if (connection == null) { return null; } GrizzlyChannel ret = ATTRIBUTE.get(connection); if (ret == null) { ret = new GrizzlyChannel(connection, url, handler); if (connection.isOpen()) { ATTRIBUTE.set(connection, ret); } } return ret; }
Example 2
Source File: GrizzlyClient.java From dubbo-2.6.5 with Apache License 2.0 | 5 votes |
@Override protected Channel getChannel() { Connection<?> c = connection; if (c == null || !c.isOpen()) return null; return GrizzlyChannel.getOrAddChannel(c, getUrl(), this); }
Example 3
Source File: GrizzlyChannel.java From dubbox with Apache License 2.0 | 5 votes |
static GrizzlyChannel getOrAddChannel(Connection<?> connection, URL url, ChannelHandler handler) { if (connection == null) { return null; } GrizzlyChannel ret = ATTRIBUTE.get(connection); if (ret == null) { ret = new GrizzlyChannel(connection, url, handler); if (connection.isOpen()) { ATTRIBUTE.set(connection, ret); } } return ret; }
Example 4
Source File: GrizzlyClient.java From dubbox with Apache License 2.0 | 5 votes |
@Override protected Channel getChannel() { Connection<?> c = connection; if (c == null || ! c.isOpen()) return null; return GrizzlyChannel.getOrAddChannel(c, getUrl(), this); }
Example 5
Source File: GrizzlyChannel.java From dubbox-hystrix with Apache License 2.0 | 5 votes |
static GrizzlyChannel getOrAddChannel(Connection<?> connection, URL url, ChannelHandler handler) { if (connection == null) { return null; } GrizzlyChannel ret = ATTRIBUTE.get(connection); if (ret == null) { ret = new GrizzlyChannel(connection, url, handler); if (connection.isOpen()) { ATTRIBUTE.set(connection, ret); } } return ret; }
Example 6
Source File: GrizzlyClient.java From dubbox-hystrix with Apache License 2.0 | 5 votes |
@Override protected Channel getChannel() { Connection<?> c = connection; if (c == null || ! c.isOpen()) return null; return GrizzlyChannel.getOrAddChannel(c, getUrl(), this); }
Example 7
Source File: GrizzlyChannel.java From dubbox with Apache License 2.0 | 5 votes |
static GrizzlyChannel getOrAddChannel(Connection<?> connection, URL url, ChannelHandler handler) { if (connection == null) { return null; } GrizzlyChannel ret = ATTRIBUTE.get(connection); if (ret == null) { ret = new GrizzlyChannel(connection, url, handler); if (connection.isOpen()) { ATTRIBUTE.set(connection, ret); } } return ret; }
Example 8
Source File: GrizzlyClient.java From dubbox with Apache License 2.0 | 5 votes |
@Override protected Channel getChannel() { Connection<?> c = connection; if (c == null || ! c.isOpen()) return null; return GrizzlyChannel.getOrAddChannel(c, getUrl(), this); }
Example 9
Source File: GrizzlyChannel.java From dubbox with Apache License 2.0 | 5 votes |
static GrizzlyChannel getOrAddChannel(Connection<?> connection, URL url, ChannelHandler handler) { if (connection == null) { return null; } GrizzlyChannel ret = ATTRIBUTE.get(connection); if (ret == null) { ret = new GrizzlyChannel(connection, url, handler); if (connection.isOpen()) { ATTRIBUTE.set(connection, ret); } } return ret; }
Example 10
Source File: GrizzlyClient.java From dubbox with Apache License 2.0 | 5 votes |
@Override protected Channel getChannel() { Connection<?> c = connection; if (c == null || ! c.isOpen()) return null; return GrizzlyChannel.getOrAddChannel(c, getUrl(), this); }
Example 11
Source File: GrizzlyChannel.java From dubbo-2.6.5 with Apache License 2.0 | 4 votes |
static void removeChannelIfDisconnected(Connection<?> connection) { if (connection != null && !connection.isOpen()) { ATTRIBUTE.remove(connection); } }
Example 12
Source File: GrizzlyChannel.java From dubbox with Apache License 2.0 | 4 votes |
static void removeChannelIfDisconnectd(Connection<?> connection) { if (connection != null && ! connection.isOpen()) { ATTRIBUTE.remove(connection); } }
Example 13
Source File: GrizzlyChannel.java From dubbox-hystrix with Apache License 2.0 | 4 votes |
static void removeChannelIfDisconnectd(Connection<?> connection) { if (connection != null && ! connection.isOpen()) { ATTRIBUTE.remove(connection); } }
Example 14
Source File: GrizzlyChannel.java From dubbox with Apache License 2.0 | 4 votes |
static void removeChannelIfDisconnectd(Connection<?> connection) { if (connection != null && ! connection.isOpen()) { ATTRIBUTE.remove(connection); } }
Example 15
Source File: GrizzlyChannel.java From dubbox with Apache License 2.0 | 4 votes |
static void removeChannelIfDisconnectd(Connection<?> connection) { if (connection != null && ! connection.isOpen()) { ATTRIBUTE.remove(connection); } }