@Deprecated public void listenToDataRefreah() { listenToDataRefresh(); }
public AbstractHollowUniqueKeyIndex(HollowConsumer consumer, String type, boolean isListenToDataRefresh, String... fieldPaths) { consumer.getRefreshLock().lock(); try { this.consumer = consumer; this.api = castAPI(consumer.getAPI()); this.idx = new HollowPrimaryKeyIndex(consumer.getStateEngine(), type, fieldPaths); this.refreshListener = new RefreshListener(); if (isListenToDataRefresh) { listenToDataRefresh(); } } catch (ClassCastException cce) { throw new ClassCastException("The HollowConsumer provided was not created with the PackageErgoTestAPI generated API class."); } finally { consumer.getRefreshLock().unlock(); } }