com.arangodb.vst.VstProtocolProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vst-protocol Show documentation
Show all versions of vst-protocol Show documentation
VST Protocol module for ArangoDB Java Driver
package com.arangodb.vst;
import com.arangodb.Protocol;
import com.arangodb.arch.UnstableApi;
import com.arangodb.internal.config.ArangoConfig;
import com.arangodb.internal.net.CommunicationProtocol;
import com.arangodb.internal.net.ConnectionFactory;
import com.arangodb.internal.net.HostHandler;
import com.arangodb.internal.net.ProtocolProvider;
import com.fasterxml.jackson.databind.Module;
@UnstableApi
public class VstProtocolProvider implements ProtocolProvider {
@Override
public boolean supportsProtocol(Protocol protocol) {
return Protocol.VST.equals(protocol);
}
@Override
@UnstableApi
public ConnectionFactory createConnectionFactory() {
return new VstConnectionFactoryAsync();
}
@Override
@UnstableApi
public CommunicationProtocol createProtocol(@UnstableApi ArangoConfig config, @UnstableApi HostHandler hostHandler) {
return new VstProtocol(new VstCommunication(config, hostHandler));
}
@Override
public Module protocolModule() {
return VstModule.INSTANCE.get();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy