public void delete(Object member, int tenantId, String tableName, List<String> ids) throws AnalyticsException { AnalyticsClusterManager acm = AnalyticsServiceHolder.getAnalyticsClusterManager(); acm.executeOne( Constants.ANALYTICS_INDEXING_GROUP, member, new IndexDataDeleteCall(tenantId, tableName, ids)); }
@Override public void onEvent(RecordsHolder event, long sequence, boolean endOfBatch) throws Exception { this.records.addAll(event.getRecords()); if (endOfBatch) { AnalyticsClusterManager acm = AnalyticsServiceHolder.getAnalyticsClusterManager(); acm.executeOne( Constants.ANALYTICS_INDEXING_GROUP, this.member, new IndexDataPutCall(this.records)); if (log.isDebugEnabled()) { log.debug("Remote Member Disruptor Send: " + this.records.size() + " -> " + this.member); } this.records.clear(); } }