Class HostSelector
- java.lang.Object
-
- io.continual.onap.services.mrCommon.HostSelector
-
public class HostSelector extends Object
A host selector intended for concurrent access.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHostSelector.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HostSelector.Builderbuilder()voidcopyInto(List<String> hosts)Clear the given list and copy the host list into it.voiddemote(String host)StringselectHost()
-
-
-
Method Detail
-
builder
public static HostSelector.Builder builder()
-
copyInto
public void copyInto(List<String> hosts)
Clear the given list and copy the host list into it.- Parameters:
hosts-
-
selectHost
public String selectHost()
-
demote
public void demote(String host)
-
-