summaryrefslogtreecommitdiff
path: root/same/src/main/java/com/orbekk/same/TestBroadcaster.java
blob: bac47420371df2333235f5880b3bf4a692c1b9f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.orbekk.same;

import java.util.List;

/**
 * This class is used in tests.
 */
public class TestBroadcaster implements Broadcaster {

    public TestBroadcaster() {
    }

    @Override
    public void broadcast(final  List<String> targets,
            final ServiceOperation operation) {
        for (String t : targets) {
            operation.run(t);
        }
    }
}