@Override public String asShortText() { return parentId.asShortText() + '/' + id; }
@Override public String asLongText() { return parentId.asLongText() + '/' + id; }
@Override public void channelAcquired(final Channel channel) { log.info("channelAcquired. Channel ID: {}" + channel.id().asShortText()); }
@Override public int compareTo(final ChannelId o) { if (o instanceof EmbeddedChannelId) { return 0; } return asLongText().compareTo(o.asLongText()); }
@Override public final int compareTo(Channel o) { if (this == o) { return 0; } return id().compareTo(o.id()); }
@Override @Nullable protected String initId() { return this.request instanceof Connection ? ((Connection) this.request).channel().id().asShortText() : null; }
@Override public int compareTo(ChannelId o) { if (o instanceof Id) { return 0; } return asLongText().compareTo(o.asLongText()); }
@Override public final int compareTo(Channel o) { if (this == o) { return 0; } return id().compareTo(o.id()); }
@Override public void channelReleased(final Channel channel) { log.info("channelReleased. Channel ID: {}" + channel.id().asShortText()); }
@Override public int compareTo(final ChannelId o) { if (o instanceof EmbeddedChannelId) { return 0; } return asLongText().compareTo(o.asLongText()); }
@Override public final int compareTo(Channel o) { if (this == o) { return 0; } return id().compareTo(o.id()); }
@Override public void channelReleased(final Channel channel) { log.info("channelReleased. Channel ID: {}" + channel.id().asShortText()); }
@Override public int compareTo(final ChannelId o) { if (this == o) { // short circuit return 0; } if (o instanceof DefaultChannelId) { // lexicographic comparison final byte[] otherData = ((DefaultChannelId) o).data; int len1 = data.length; int len2 = otherData.length; int len = Math.min(len1, len2); for (int k = 0; k < len; k++) { byte x = data[k]; byte y = otherData[k]; if (x != y) { // treat these as unsigned bytes for comparison return (x & 0xff) - (y & 0xff); } } return len1 - len2; } return asLongText().compareTo(o.asLongText()); }
@Override public int compareTo(Channel o) { if (this == o) { return 0; } return id().compareTo(o.id()); }
@Override public void channelAcquired(final Channel channel) { log.info("channelAcquired. Channel ID: {}" + channel.id().asShortText()); }
@Override public int compareTo(final ChannelId o) { if (o instanceof EmbeddedChannelId) { return 0; } return asLongText().compareTo(o.asLongText()); }
@Override public int compareTo(Channel o) { return id().compareTo(o.id()); } }
@Override public void channelCreated(final Channel channel) { log.info("channelCreated. Channel ID: {}" + channel.id().asShortText()); channel.pipeline().addLast(new BackendNettyClientChannelInitializer(dataSourceName, schemaName)); } }
@Override public int compareTo(final ChannelId o) { if (this == o) { // short circuit return 0; } if (o instanceof DefaultChannelId) { // lexicographic comparison final byte[] otherData = ((DefaultChannelId) o).data; int len1 = data.length; int len2 = otherData.length; int len = Math.min(len1, len2); for (int k = 0; k < len; k++) { byte x = data[k]; byte y = otherData[k]; if (x != y) { // treat these as unsigned bytes for comparison return (x & 0xff) - (y & 0xff); } } return len1 - len2; } return asLongText().compareTo(o.asLongText()); }