public class EngineGraknTxFactory extends Object
Engine's internal GraknTx Factory
This internal factory is used to produce GraknTxs.
It is also worth noting that both this class and Grakn.session(String, String) us the same
GraknTxFactoryBuilder. This means that graphs produced from either factory pointing to the same keyspace
are actually the same graphs.
| Modifier and Type | Method and Description |
|---|---|
GraknConfig |
config() |
static EngineGraknTxFactory |
create(LockProvider lockProvider,
GraknConfig engineConfig,
GraknKeyspaceStore keyspaceStore) |
GraknKeyspaceStore |
keyspaceStore() |
void |
refreshConnections() |
EmbeddedGraknTx<?> |
tx(ai.grakn.Keyspace keyspace,
ai.grakn.GraknTxType type) |
public static EngineGraknTxFactory create(LockProvider lockProvider, GraknConfig engineConfig, GraknKeyspaceStore keyspaceStore)
public void refreshConnections()
public EmbeddedGraknTx<?> tx(ai.grakn.Keyspace keyspace, ai.grakn.GraknTxType type)
public GraknConfig config()
public GraknKeyspaceStore keyspaceStore()
Copyright © 2018 Grakn Labs Ltd. All rights reserved.