Package com.adaptris.core.cache.geode
Class PoolLocatorBuilder
- java.lang.Object
-
- com.adaptris.core.cache.geode.PoolLocatorBuilder
-
- All Implemented Interfaces:
ClientCacheBuilder
public class PoolLocatorBuilder extends java.lang.Object implements ClientCacheBuilder
UsesClientCacheFactory.addPoolLocator(String, int)to build a client cache.In the adapter configuration file this class is aliased as "geode-client-cache-from-pool-locator" which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Constructor Summary
Constructors Constructor Description PoolLocatorBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.geode.cache.client.ClientCachebuild(org.apache.geode.cache.client.ClientCacheFactory factory)java.lang.StringgetHostname()java.lang.IntegergetPort()voidsetHostname(java.lang.String hostname)voidsetPort(java.lang.Integer port)PoolLocatorBuilderwithHostname(java.lang.String h)PoolLocatorBuilderwithPort(java.lang.Integer i)
-
-
-
Method Detail
-
build
public org.apache.geode.cache.client.ClientCache build(org.apache.geode.cache.client.ClientCacheFactory factory)
- Specified by:
buildin interfaceClientCacheBuilder
-
getHostname
public java.lang.String getHostname()
-
setHostname
public void setHostname(java.lang.String hostname)
-
getPort
public java.lang.Integer getPort()
-
setPort
public void setPort(java.lang.Integer port)
-
withHostname
public PoolLocatorBuilder withHostname(java.lang.String h)
-
withPort
public PoolLocatorBuilder withPort(java.lang.Integer i)
-
-