org.terracotta.express
Class ClientFactoryExtras

java.lang.Object
  extended by org.terracotta.express.ClientFactoryExtras

public final class ClientFactoryExtras
extends Object

Static factory having extra methods for creating Terracotta client instances


Method Summary
static Client createDedicatedClient(String tcConfig, boolean isUrl, Class[] moduleIntrospectionSources)
          Create a dedicated client instance using the given configuration.
static Client createDedicatedRejoinClient(String tcConfig, boolean isUrl, Class[] moduleIntrospectionSources)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createDedicatedClient

public static Client createDedicatedClient(String tcConfig,
                                           boolean isUrl,
                                           Class[] moduleIntrospectionSources)
Create a dedicated client instance using the given configuration.

The code sources for the supplied classes, are inspected for the presence of any integration modules that should be loaded in to the client.

Parameters:
tcConfig - terracotta configuration
isUrl - true if the configuration is a server URL.
moduleIntrospectionSources - classes to inspect for embedded modules
Returns:
a new client instance

createDedicatedRejoinClient

public static Client createDedicatedRejoinClient(String tcConfig,
                                                 boolean isUrl,
                                                 Class[] moduleIntrospectionSources)


Copyright © 2015 Terracotta, Inc.. All Rights Reserved.