com.softwareag.um.io.ClientContextBuilderFactory Class Reference

This factory allows you to construct ClientContextBuilders and therefore ClientTransportContexts by passing a String URL. More...

Detailed Description

This factory allows you to construct ClientContextBuilders and therefore ClientTransportContexts by passing a String URL.

This way you can compile an application which is Transport agnostic and simply change the URL passed to the application to switch from SHM to Sockets etc. A URL is of the form protocol://host:port?Property=value&Property2=value2 The relevant ClientContextBuilder will be constructed based on the protocol and then the properties will be set using reflection. So on a ClientSHMTransportContext there is a method: withLowLatency(boolean b) that you could set to true using a URL like this:

* String url = "shm://localhost:/path/to/file?LowLatency=true";
* ClientTransportContext context = ClientContextBuilderFactory.getBuilder(url).build();
*

Please note that the method is "withLowLatency" but you should pass "LowLatency" to the query string