public CompletionStage < ReloadableSparkeyReader > load ( final File logFile ) { checkArgument ( isValidLogFile ( logFile ) ) ; CompletableFuture < ReloadableSparkeyReader > result = new CompletableFuture <> ( ) ; this . executorService . submit ( ( ) -> { switchReader ( logFile ) ; result . complete ( this ) ; } ) ; return result ; }
Load a new log file into this reader .