public abstract class TxFactoryBuilder extends Object
Builds a TxFactory
Builds a TxFactory which is locked to a specific keyspace and engine URL.
This uses refection in order to dynamically build any vendor specific factory which implements the
TxFactory API.
The factories in this class are treated as singletons.
| Constructor and Description |
|---|
TxFactoryBuilder() |
| Modifier and Type | Method and Description |
|---|---|
abstract TxFactory<?> |
getFactory(EmbeddedGraknSession session,
boolean isComputerFactory) |
protected static TxFactory<?> |
newFactory(String factoryType,
EmbeddedGraknSession session) |
public static final String IN_MEMORY
public abstract TxFactory<?> getFactory(EmbeddedGraknSession session, boolean isComputerFactory)
protected static final TxFactory<?> newFactory(String factoryType, EmbeddedGraknSession session)
factoryType - The type of the factory to initialise. Any factory which implements TxFactorysession - The GraknSession creating this factoryCopyright © 2018 Grakn Labs Ltd. All rights reserved.