Code example for BlockingQueue

Methods: take

0
        ChannelFuture future = Channels.write(session.getChannel(), session); 
        future.addListener(ChannelFutureListener.CLOSE); 
    } 
 
    public Session getSession() throws InterruptedException { 
        return store.take(); 
    } 
}