- Common ways to obtain ClientBootstrap
private void myMethod () {ClientBootstrap c =
ChannelFactory channelFactory;new ClientBootstrap(channelFactory)
new ClientBootstrap(new NioClientSocketChannelFactory(Executors.newCachedThreadPool(), Executors.newCachedThreadPool()))
new ClientBootstrap(new NioClientSocketChannelFactory(Executors.newSingleThreadExecutor(), Executors.newSingleThreadExecutor()))
- Smart code suggestions by Codota
}
throw new StompException( e ); bootstrap.setFactory( createChannelFactory() );