public abstract class VstConnection<T> 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,
Integer keepAliveInterval,
Boolean useSsl,
SSLContext sslContext,
MessageStore messageStore) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected abstract void |
doKeepAlive() |
String |
getConnectionName() |
boolean |
isOpen() |
void |
open() |
protected void |
readBytesIntoBuffer(byte[] buf,
int off,
int len) |
protected Chunk |
readChunk() |
protected T |
sendKeepAlive() |
void |
setJwt(String jwt) |
abstract T |
write(Message message,
Collection<Chunk> chunks) |
protected void |
writeIntern(Message message,
Collection<Chunk> chunks) |
protected final MessageStore messageStore
protected final Integer timeout
protected VstConnection(HostDescription host, Integer timeout, Long ttl, Integer keepAliveInterval, Boolean useSsl, SSLContext sslContext, MessageStore messageStore)
protected T sendKeepAlive()
public abstract T write(Message message, Collection<Chunk> chunks)
protected abstract void doKeepAlive()
public boolean isOpen()
public void open() throws IOException
IOException
public void close()
close
in interface Closeable
close
in interface AutoCloseable
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
public String getConnectionName()
public void setJwt(String jwt)
setJwt
in interface Connection
Copyright © 2016–2022 ArangoDB GmbH. All rights reserved.