public void connectionReadyForWrites(Object connectionID, boolean ready)
{
}
};
NettyConnector connector = new NettyConnector(params,
handler,
listener,
Executors.newCachedThreadPool(),
Executors.newCachedThreadPool(),
Executors.newScheduledThreadPool(5));
System.setProperty(NettyConnector.JAVAX_KEYSTORE_PATH_PROP_NAME, "client-side.keystore");
System.setProperty(NettyConnector.JAVAX_KEYSTORE_PASSWORD_PROP_NAME, "secureexample");
System.setProperty(NettyConnector.JAVAX_TRUSTSTORE_PATH_PROP_NAME, "client-side.truststore");
System.setProperty(NettyConnector.JAVAX_TRUSTSTORE_PASSWORD_PROP_NAME, "secureexample");
connector.start();
Assert.assertTrue(connector.isStarted());
connector.close();
Assert.assertFalse(connector.isStarted());
}