public ServiceBuilder withDataLogFactory ( Function < ComponentSetup , DurableDataLogFactory > dataLogFactoryCreator ) { Preconditions . checkNotNull ( dataLogFactoryCreator , "dataLogFactoryCreator" ) ; this . dataLogFactoryCreator = dataLogFactoryCreator ; return this ; }
Attaches the given DurableDataLogFactory creator to this ServiceBuilder . The given Function will only not be invoked right away ; it will be called when needed .