@Override public void onOpen(Connection connection) { synchronized (channel) { connectionFuture = null; reconnectAttempts = 0; ((TransportData)channel.getTransportData()).connection = connection; send(channel, null); } }
@SuppressWarnings("unchecked") protected void onConnect(Channel channel, S connection) { synchronized (channel) { reconnectAttempts = 0; ((TransportData<S>)channel.getTransportData()).connect(connection); } send(channel, null); }
@SuppressWarnings("unchecked") protected void onConnect(Channel channel, S connection) { synchronized (channel) { reconnectAttempts = 0; ((TransportData<S>)channel.getTransportData()).connect(connection); } send(channel, null); }
TransportData transportData = channel.getTransportData(); if (transportData == null) { transportData = new TransportData();
transportData = channel.getTransportData(); if (transportData == null) { transportData = newTransportData();
transportData = channel.getTransportData(); if (transportData == null) { transportData = newTransportData();
((TransportData)channel.getTransportData()).connection = null; connectionFuture = null;
if (channel.getTransportData() != null) { ((TransportData<?>)channel.getTransportData()).disconnect(); channel.setTransportData(null);
if (channel.getTransportData() != null) { ((TransportData<?>)channel.getTransportData()).disconnect(); channel.setTransportData(null);