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
8 package ntfbenchmark.impl;
10 import org.opendaylight.mdsal.binding.api.NotificationPublishService;
12 public class NtfbenchBlockingProducer extends AbstractNtfbenchProducer {
14 public NtfbenchBlockingProducer(final NotificationPublishService publishService, final int iterations,
15 final int payloadSize) {
16 super(publishService, iterations, payloadSize);
20 @SuppressWarnings("checkstyle:illegalCatch")
25 for (int i = 0; i < this.iterations; i++) {
27 this.publishService.putNotification(this.ntf);
29 } catch (final Exception e) {
35 this.ntfError = ntfError;