public final class H2Consumer extends AutocloseConsumer implements Closeable
IResultsConsumer
that appends records to a H2 database.Constructor and Description |
---|
H2Consumer() |
H2Consumer(File dbFileName) |
H2Consumer(File dbFileName,
File chartsDir,
String customKeyValue) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Result result)
Accept a single benchmark result.
|
void |
close()
Close the database connection and finalize transaction.
|
void |
rollback()
Rollback all performed operations on request.
|
addAutoclose, removeAutoclose
public H2Consumer()
public H2Consumer(File dbFileName)
public void accept(Result result)
accept
in interface IResultsConsumer
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public void rollback()
Copyright © 2015 Carrot Search s.c.. All rights reserved.