2 * Copyright (c) 2015 Cisco Systems and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package ntfbenchmark.impl;
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ntfbench.payload.rev150709.Ntfbench;
13 import com.google.common.util.concurrent.SettableFuture;
15 public class NtfbenchWTCListener extends NtfbenchTestListener {
16 private final int expectedCount;
17 private final SettableFuture<?> allDone = SettableFuture.create();
19 public NtfbenchWTCListener(int expectedSize, int expectedCount) {
21 this.expectedCount = expectedCount;
25 public void onNtfbench(Ntfbench notification) {
26 // TODO Auto-generated method stub
27 super.onNtfbench(notification);
28 if (expectedCount == getReceived()) {
33 public SettableFuture<?> getAllDone() {