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 HostHandler
public void success()
success
in interface HostHandler
public void fail(Exception exception)
fail
in interface HostHandler
public void failIfNotMatch(HostDescription host, Exception exception)
failIfNotMatch
in interface HostHandler
public void reset()
reset
in interface HostHandler
public void confirm()
confirm
in interface HostHandler
public void close()
close
in interface HostHandler
public void closeCurrentOnError()
closeCurrentOnError
in interface HostHandler
public void closeCurrentOnErrorIfNotMatch(HostDescription host)
closeCurrentOnErrorIfNotMatch
in interface HostHandler
public void setJwt(String jwt)
setJwt
in interface HostHandler
Copyright © 2016–2023 ArangoDB GmbH. All rights reserved.