Package org.nustaq.reallive.client
Class EmbeddedRealLive
java.lang.Object
org.nustaq.reallive.client.EmbeddedRealLive
public class EmbeddedRealLive
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static java.util.Map<java.lang.String,java.util.function.Function<TableDescription,RecordStorage>>sCustomRecordStorage -
Constructor Summary
Constructors Constructor Description EmbeddedRealLive() -
Method Summary
Modifier and Type Method Description org.nustaq.kontraktor.IPromise<RealLiveTable>createTable(TableDescription desc, java.lang.String dataDir)WARNING: never create more than one table using the same file.static EmbeddedRealLiveget()
-
Field Details
-
sCustomRecordStorage
public static java.util.Map<java.lang.String,java.util.function.Function<TableDescription,RecordStorage>> sCustomRecordStorage
-
-
Constructor Details
-
EmbeddedRealLive
public EmbeddedRealLive()
-
-
Method Details
-
get
-
createTable
public org.nustaq.kontraktor.IPromise<RealLiveTable> createTable(TableDescription desc, java.lang.String dataDir)WARNING: never create more than one table using the same file. This will result in corrupted data for sure. As actor refs (tables) are thread save, just init a singleton containing all your tables once.- Parameters:
desc-dataDir- - if null use path from description- Returns:
- a thread save actor reference to a newly loaded or created table
-