Skip to content

Instantly share code, notes, and snippets.

@dnno
Last active January 21, 2018 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dnno/876545ac973970aa27b257cb6a57584f to your computer and use it in GitHub Desktop.
Save dnno/876545ac973970aa27b257cb6a57584f to your computer and use it in GitHub Desktop.
private Configuration getCacheManagerConfiguration() {
ConfigurationBuilder configBuilder = new ConfigurationBuilder()
.addServers(getHotrodEndpointConnectionString())
.version(getProtocolVersion());
getTransportFactory().ifPresent(transportFactory -> {
configBuilder.transportFactory(transportFactory);
});
return configBuilder.build();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment