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.controller.md.sal.binding.api.NotificationPublishService;
13 public class NtfbenchBlockingProducer extends AbstractNtfbenchProducer {
15 public NtfbenchBlockingProducer(final NotificationPublishService publishService, final int iterations,
16 final int payloadSize) {
17 super(publishService, iterations, payloadSize);
21 @SuppressWarnings("checkstyle:illegalCatch")
26 for (int i = 0; i < this.iterations; i++) {
28 this.publishService.putNotification(this.ntf);
30 } catch (final Exception e) {
36 this.ntfError = ntfError;