private ChannelInstance findChannel ( final By by ) { final Optional < ChannelInstance > channel ; try ( Locked l = lock ( this . readLock ) ) { channel = find ( by ) ; } if ( ! channel . isPresent ( ) ) { throw new ChannelNotFoundException ( by . toString ( ) ) ; } return channel . get ( ) ; }
Find a channel