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 Connectionpublic boolean isOpen()
public void open()
throws IOException
IOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic void closeOnError()
closeOnError in interface Connectionprotected void writeIntern(Message message, Collection<Chunk> chunks) throws ArangoDBException
ArangoDBExceptionprotected Chunk readChunk() throws IOException
IOExceptionprotected void readBytesIntoBuffer(byte[] buf,
int off,
int len)
throws IOException
IOExceptionCopyright © 2016–2017 ArangoDB GmbH. All rights reserved.