private final Set<InstanceIdentifier<?>> removedIids = new HashSet<>();
private final Set<InstanceIdentifier<?>> updatedIids = new HashSet<>();
private InstanceIdentifier<?> iid;
- private final int RETRY_WAIT = 100;
- private final int MDSAL_TIMEOUT = 10000;
+ private final static int RETRY_WAIT = 100;
+ private final static int MDSAL_TIMEOUT_OPERATIONAL = 10000;
+ private final static int MDSAL_TIMEOUT_CONFIG = 1000;
private ListenerRegistration<?> listenerRegistration;
private List<NotifyingDataChangeListener> waitList = null;
+ private int mdsalTimeout = MDSAL_TIMEOUT_OPERATIONAL;
/**
* Create a new NotifyingDataChangeListener
if(this.waitList != null) {
this.waitList.add(this);
}
+
+ mdsalTimeout = MDSAL_TIMEOUT_OPERATIONAL;
+ if (type == LogicalDatastoreType.CONFIGURATION) {
+ mdsalTimeout = MDSAL_TIMEOUT_CONFIG;
+ }
}
/**
}
public void waitForCreation() throws InterruptedException {
- waitForCreation(MDSAL_TIMEOUT);
+ waitForCreation(mdsalTimeout);
}
public void waitForCreation(long timeout) throws InterruptedException {
}
public void waitForUpdate() throws InterruptedException {
- waitForUpdate(MDSAL_TIMEOUT);
+ waitForUpdate(mdsalTimeout);
}
public void waitForUpdate(long timeout) throws InterruptedException {
}
public void waitForDeletion() throws InterruptedException {
- waitForDeletion(MDSAL_TIMEOUT);
+ waitForDeletion(mdsalTimeout);
}
public void waitForDeletion(long timeout) throws InterruptedException {