Skip to content

Commit

Permalink
addListener no more abstract
Browse files Browse the repository at this point in the history
  • Loading branch information
niko.usai committed Mar 15, 2022
1 parent f3c6daa commit de7fa35
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ long search(final Query query, QueryCollector matcher) throws IOException {

public abstract long getLastPurged();

abstract void addListener(MonitorUpdateListener listener);
public void addListener(MonitorUpdateListener listener) {
listeners.add(listener);
}

public interface QueryCollector {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,6 @@ public long getLastPurged() {
return -1;
}

@Override
public void addListener(MonitorUpdateListener listener) {
listeners.add(listener);
}

// ---------------------------------------------
// Helper classes...
// ---------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,6 @@ class WritableQueryIndex extends QueryIndex {
configuration.getPurgeFrequencyUnits());
}

@Override
public void addListener(MonitorUpdateListener listener) {
listeners.add(listener);
}

@Override
public void commit(List<MonitorQuery> updates) throws IOException {
commitWithoutNotify(updates);
Expand Down

0 comments on commit de7fa35

Please sign in to comment.