public class RandomHostHandler extends Object implements HostHandler
| Constructor and Description |
|---|
RandomHostHandler(HostResolver resolver,
HostHandler fallback) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeCurrentOnError() |
void |
closeCurrentOnErrorIfNotMatch(HostDescription host) |
void |
confirm() |
void |
fail(Exception exception) |
void |
failIfNotMatch(HostDescription host,
Exception exception) |
Host |
get(HostHandle hostHandle,
AccessType accessType) |
void |
reset() |
void |
setJwt(String jwt) |
void |
success() |
public RandomHostHandler(HostResolver resolver, HostHandler fallback)
public Host get(HostHandle hostHandle, AccessType accessType)
get in interface HostHandlerpublic void success()
success in interface HostHandlerpublic void fail(Exception exception)
fail in interface HostHandlerpublic void failIfNotMatch(HostDescription host, Exception exception)
failIfNotMatch in interface HostHandlerpublic void reset()
reset in interface HostHandlerpublic void confirm()
confirm in interface HostHandlerpublic void close()
close in interface HostHandlerpublic void closeCurrentOnError()
closeCurrentOnError in interface HostHandlerpublic void closeCurrentOnErrorIfNotMatch(HostDescription host)
closeCurrentOnErrorIfNotMatch in interface HostHandlerpublic void setJwt(String jwt)
setJwt in interface HostHandlerCopyright © 2016–2022 ArangoDB GmbH. All rights reserved.