use of org.folio.service.holdings.message.DeltaReportCreatedMessage in project mod-kb-ebsco-java by folio-org.
the class HoldingsServiceImpl method deltaReportCreated.
@Override
public void deltaReportCreated(DeltaReportCreatedMessage message, Handler<AsyncResult<Void>> handler) {
final UUID credentialsId = toUUID(message.getCredentialsId());
final String tenantId = message.getTenantId();
holdingsStatusRepository.update(getStatusLoadingHoldings(message.getTotalCount(), 0, message.getTotalPages(), 0), credentialsId, tenantId).thenAccept(o -> handler.handle(Future.succeededFuture(null))).exceptionally(e -> {
logger.error(FAILED_CREATE_SNAPSHOT_MESSAGE, e);
handler.handle(Future.failedFuture(e));
return null;
});
}
Aggregations