public static class GeoService.Builder extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
ttl |
Constructor and Description |
---|
GeoService.Builder() |
Modifier and Type | Method and Description |
---|---|
GeoService.Builder |
active(boolean active) |
GeoService.Builder |
addAllGroups(Iterable<GeoRegionGroup> groups) |
GeoService.Builder |
addAllNodes(Iterable<Node> nodes) |
GeoService.Builder |
addGroup(GeoRegionGroup group) |
GeoService.Builder |
addNode(Node node) |
GeoService |
build() |
GeoService.Builder |
from(GeoService in) |
GeoService.Builder |
groups(Iterable<GeoRegionGroup> groups)
replaces current region groups
|
GeoService.Builder |
name(String name) |
GeoService.Builder |
nodes(Iterable<Node> nodes)
replaces current region groups
|
GeoService.Builder |
ttl(int ttl) |
public GeoService.Builder name(String name)
GeoService.getName()
public GeoService.Builder active(boolean active)
GeoService.isActive()
public GeoService.Builder ttl(int ttl)
GeoService.getTTL()
public GeoService.Builder addNode(Node node)
GeoService.getNodes()
public GeoService.Builder nodes(Iterable<Node> nodes)
GeoService.getNodes()
public GeoService.Builder addAllNodes(Iterable<Node> nodes)
GeoService.getNodes()
public GeoService.Builder addGroup(GeoRegionGroup group)
GeoService.getGroups()
public GeoService.Builder groups(Iterable<GeoRegionGroup> groups)
GeoService.getGroups()
public GeoService.Builder addAllGroups(Iterable<GeoRegionGroup> groups)
GeoService.getGroups()
public GeoService build()
public GeoService.Builder from(GeoService in)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.