public class RandomNodeBalancer extends Object implements ServiceNodeBalancer
| Constructor and Description |
|---|
RandomNodeBalancer() |
| Modifier and Type | Method and Description |
|---|---|
Optional<ServiceNode> |
getService(List<ServiceNode> nodes) |
<ERROR extends Exception> |
isRunning() |
<ERROR extends Exception> |
start() |
<ERROR extends Exception> |
stop() |
public Optional<ServiceNode> getService(List<ServiceNode> nodes)
getService in interface ServiceNodeBalancerpublic <ERROR extends Exception> void start() throws ERROR extends Exception
start in interface org.irenical.lifecycle.LifeCycleERROR extends Exceptionpublic <ERROR extends Exception> void stop() throws ERROR extends Exception
stop in interface org.irenical.lifecycle.LifeCycleERROR extends ExceptionCopyright © 2017 Irenical. All rights reserved.