public abstract class VstConnection extends Object implements Connection
| Modifier and Type | Field and Description |
|---|---|
protected MessageStore |
messageStore |
protected Integer |
timeout |
| Modifier | Constructor and Description |
|---|---|
protected |
VstConnection(HostDescription host,
Integer timeout,
Long ttl,
Boolean useSsl,
SSLContext sslContext,
MessageStore messageStore) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getConnectionName() |
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 final Integer timeout
protected VstConnection(HostDescription host, Integer timeout, Long ttl, Boolean useSsl, SSLContext sslContext, MessageStore messageStore)
public boolean isOpen()
public void open()
throws IOException
IOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableprotected 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
IOExceptionpublic String getConnectionName()
Copyright © 2016–2020 ArangoDB GmbH. All rights reserved.