public abstract class Communication<R,C extends Connection> extends Object
Modifier and Type | Field and Description |
---|---|
protected Integer |
chunksize |
protected CollectionCache |
collectionCache |
protected ConnectionPool<C> |
connectionPool |
protected static AtomicLong |
mId |
protected String |
password |
protected String |
user |
protected ArangoUtil |
util |
Modifier | Constructor and Description |
---|---|
protected |
Communication(Integer timeout,
String user,
String password,
Boolean useSsl,
SSLContext sslContext,
ArangoUtil util,
CollectionCache collectionCache,
Integer chunksize,
ConnectionPool<C> connectionPool) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
authenticate(C connection) |
protected Collection<Chunk> |
buildChunks(Message message) |
protected void |
checkError(Response response) |
protected void |
connect(C connection) |
protected Message |
createMessage(Request request) |
protected Response |
createResponse(Message messsage) |
void |
disconnect() |
R |
execute(Request request) |
abstract R |
execute(Request request,
C connection) |
protected static final AtomicLong mId
protected final ArangoUtil util
protected final ConnectionPool<C extends Connection> connectionPool
protected final CollectionCache collectionCache
protected final String user
protected final String password
protected final Integer chunksize
protected Communication(Integer timeout, String user, String password, Boolean useSsl, SSLContext sslContext, ArangoUtil util, CollectionCache collectionCache, Integer chunksize, ConnectionPool<C> connectionPool)
protected void connect(C connection)
protected abstract void authenticate(C connection)
public void disconnect()
public R execute(Request request) throws ArangoDBException
ArangoDBException
public abstract R execute(Request request, C connection) throws ArangoDBException
ArangoDBException
protected void checkError(Response response) throws ArangoDBException
ArangoDBException
protected Response createResponse(Message messsage) throws com.arangodb.velocypack.exception.VPackParserException
com.arangodb.velocypack.exception.VPackParserException
protected Message createMessage(Request request) throws com.arangodb.velocypack.exception.VPackParserException
com.arangodb.velocypack.exception.VPackParserException
protected Collection<Chunk> buildChunks(Message message)
Copyright © 2016–2017 ArangoDB GmbH. All rights reserved.