public abstract class Communication<R,C extends Connection> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Integer |
chunksize |
protected CollectionCache |
collectionCache |
protected C |
connection |
protected static AtomicLong |
mId |
protected String |
password |
protected String |
user |
protected VPack |
vpack |
| Modifier | Constructor and Description |
|---|---|
protected |
Communication(String host,
Integer port,
Integer timeout,
String user,
String password,
Boolean useSsl,
SSLContext sslContext,
VPack vpack,
CollectionCache collectionCache,
Integer chunksize,
C connection) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
authenticate() |
protected Collection<Chunk> |
buildChunks(Message message) |
protected void |
checkError(Response response) |
protected void |
connect(Connection connection) |
protected Message |
createMessage(Request request) |
protected Response |
createResponse(Message messsage) |
void |
disconnect() |
void |
disconnect(Connection connection) |
abstract R |
execute(Request request) |
protected static final AtomicLong mId
protected final VPack vpack
protected final C extends Connection connection
protected final CollectionCache collectionCache
protected final String user
protected final String password
protected final Integer chunksize
protected void connect(Connection connection)
protected abstract void authenticate()
public void disconnect()
public void disconnect(Connection connection)
public abstract R execute(Request request) throws ArangoDBException
ArangoDBExceptionprotected void checkError(Response response) throws ArangoDBException
ArangoDBExceptionprotected Response createResponse(Message messsage) throws VPackParserException
VPackParserExceptionprotected Message createMessage(Request request) throws VPackParserException
VPackParserExceptionprotected Collection<Chunk> buildChunks(Message message) throws IOException
IOExceptionCopyright © 2016 ArangoDB GmbH. All rights reserved.