196197198199200201202203204205206
* @param channel */ protected void cleanup(ChannelHandlerContext ctx) { ProtocolSession session = (ProtocolSession) ctx.getAttachment(); if (session != null) { session.resetState(); session = null; } }
158159160161162163164165166167168
* @param channel */ protected void cleanup(Channel channel) { ProtocolSession session = (ProtocolSession) attributes.remove(channel); if (session != null) { session.resetState(); session = null; } } /**
175176177178179180181182183184185
121122123124125126127128129130131
* @param channel */ protected void cleanup(Channel channel) { ProtocolSession session = (ProtocolSession) attributes.get(channel); if (session != null) { session.resetState(); session = null; } attributes.remove(channel); }
195196197198199200201202203204205
* @param ctx */ protected void cleanup(ChannelHandlerContext ctx) { ProtocolSession session = (ProtocolSession) ctx.getAttachment(); if (session != null) { session.resetState(); session = null; } }
183184185186187188189190191192193