Fix followerDistributedDataStore tear down
[controller.git] / opendaylight / md-sal / sal-dummy-distributed-datastore / src / main / java / org / opendaylight / controller / dummy / datastore / Configuration.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.controller.dummy.datastore;
10
11 public class Configuration {
12     private final int maxDelayInMillis;
13     private final boolean dropReplies;
14     private final boolean causeTrouble;
15
16     public Configuration(int maxDelayInMillis, boolean dropReplies, boolean causeTrouble) {
17         this.maxDelayInMillis = maxDelayInMillis;
18         this.dropReplies = dropReplies;
19         this.causeTrouble = causeTrouble;
20     }
21
22     public int getMaxDelayInMillis() {
23         return maxDelayInMillis;
24     }
25
26     public boolean shouldDropReplies() {
27         return dropReplies;
28     }
29
30     public boolean shouldCauseTrouble() {
31         return causeTrouble;
32     }
33 }