use of com.alliander.osgp.shared.exceptionhandling.NoDeviceResponseException in project Protocol-Adapter-OSLP by OSGP.
the class OslpChannelHandlerClient method channelDisconnected.
@Override
public void channelDisconnected(final ChannelHandlerContext ctx, final ChannelStateEvent e) throws Exception {
final int channelId = e.getChannel().getId();
if (this.callbackHandlers.containsKey(channelId)) {
this.callbackHandlers.get(channelId).getDeviceResponseHandler().handleException(new NoDeviceResponseException());
this.callbackHandlers.remove(channelId);
}
super.channelDisconnected(ctx, e);
}
Aggregations