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 EmbeddedRealLive get()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • get

      public static EmbeddedRealLive 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