/** * Determines whether the notifier is active or not. * <p> * The notifier becomes inactive if the PVWriter is closed or is garbage collected. * The first time this function determines that the notifier is inactive, * it will ask the data source to close all channels relative to the * pv. * * @return true if new notification should be performed */ boolean isActive() { // Making sure to get the reference once for thread safety final PVWriter<T> pv = pvRef.get(); if (pv != null && !pv.isClosed()) { return true; } else { return false; } }