Rev | Line | |
---|
[948] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.Linq;
|
---|
| 4 | using System.Text;
|
---|
| 5 |
|
---|
| 6 | namespace HeuristicLab.Hive.Contracts.Interfaces {
|
---|
| 7 | /// <summary>
|
---|
| 8 | /// Transaction manager for the DB access layer
|
---|
| 9 | /// </summary>
|
---|
| 10 | public interface ITransactionManager {
|
---|
| 11 | /// <summary>
|
---|
| 12 | /// This event is fired when an update occurs
|
---|
| 13 | /// </summary>
|
---|
| 14 | event EventHandler OnUpdate;
|
---|
| 15 |
|
---|
| 16 | /// <summary>
|
---|
| 17 | /// Enables the auto update of the DB
|
---|
| 18 | /// </summary>
|
---|
| 19 | /// <param name="interval"></param>
|
---|
| 20 | void EnableAutoUpdate(TimeSpan interval);
|
---|
| 21 |
|
---|
| 22 | /// <summary>
|
---|
| 23 | /// Disables the auto update of the DB
|
---|
| 24 | /// </summary>
|
---|
| 25 | void DisableAutoUpdate();
|
---|
| 26 |
|
---|
| 27 | /// <summary>
|
---|
| 28 | /// Update the DB from the cache
|
---|
| 29 | /// </summary>
|
---|
| 30 | void UpdateDB();
|
---|
| 31 | }
|
---|
| 32 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.