update method

void update()
inherited

Makes message cache as updated and dumps it when timeout expires.

See dump

Implementation

void update() {
  updated = true;
  var now = DateTime.now().toUtc().millisecondsSinceEpoch;

  if (now > lastDumpTime + interval) {
    try {
      dump();
    } catch (ex) {
      // TODO: decide what to do
    }
  }
}