public abstract class VstConnection extends Object implements Connection
Modifier and Type | Field and Description |
---|---|
protected MessageStore |
messageStore |
Modifier | Constructor and Description |
---|---|
protected |
VstConnection(HostHandler hostHandler,
Integer timeout,
Boolean useSsl,
SSLContext sslContext,
MessageStore messageStore) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
closeOnError() |
Host |
getHost() |
boolean |
isOpen() |
void |
open() |
protected void |
readBytesIntoBuffer(byte[] buf,
int off,
int len) |
protected Chunk |
readChunk() |
protected void |
writeIntern(Message message,
Collection<Chunk> chunks) |
protected final MessageStore messageStore
protected VstConnection(HostHandler hostHandler, Integer timeout, Boolean useSsl, SSLContext sslContext, MessageStore messageStore)
public Host getHost()
getHost
in interface Connection
public boolean isOpen()
public void open() throws IOException
IOException
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public void closeOnError()
closeOnError
in interface Connection
protected void writeIntern(Message message, Collection<Chunk> chunks) throws ArangoDBException
ArangoDBException
protected Chunk readChunk() throws IOException
IOException
protected void readBytesIntoBuffer(byte[] buf, int off, int len) throws IOException
IOException
Copyright © 2016–2017 ArangoDB GmbH. All rights reserved.