private final DataBroker broker;
private final InstanceIdentifier<AuthenticationKey> path;
private ListenerRegistration<DataTreeChangeListener<AuthenticationKey>> registration;
+ private boolean authKeyRefreshing = false;
+ private long authKeyRefreshingDate;
public AuthenticationKeyDataListener(final DataBroker broker, final SimpleMapCache smc) {
registration.close();
}
+ public boolean isAuthKeyRefreshing() {
+ return authKeyRefreshing;
+ }
+
+ public void setAuthKeyRefreshing(boolean authKeyRefreshing) {
+ this.authKeyRefreshing = authKeyRefreshing;
+ }
+
+ public long getAuthKeyRefreshingDate() {
+ return authKeyRefreshingDate;
+ }
+
@Override
public void onDataTreeChanged(Collection<DataTreeModification<AuthenticationKey>> changes) {
+ authKeyRefreshing = true;
+ authKeyRefreshingDate = System.currentTimeMillis();
for (DataTreeModification<AuthenticationKey> change : changes) {
final DataObjectModification<AuthenticationKey> mod = change.getRootNode();