public class DirtyReadHostHandler extends Object implements HostHandler
Constructor and Description |
---|
DirtyReadHostHandler(HostHandler master,
HostHandler follower) |
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 DirtyReadHostHandler(HostHandler master, HostHandler follower)
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() throws IOException
close
in interface HostHandler
IOException
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.