}
}
public void testChannelRecoveryCallback() throws IOException, InterruptedException {
final CountDownLatch latch = new CountDownLatch(2);
final RecoveryListener listener = new RecoveryListener() {
public void handleRecovery(Recoverable recoverable) {
latch.countDown();
}
};
AutorecoveringChannel ch1 = (AutorecoveringChannel) connection.createChannel();