Switched from a deprecated api invocation to the new one
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-service@152702 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
1a78e77e5b
commit
ba7acac7f4
|
@ -1,7 +1,5 @@
|
||||||
package org.gcube.data.publishing.accounting.service;
|
package org.gcube.data.publishing.accounting.service;
|
||||||
|
|
||||||
import java.util.concurrent.TimeUnit;
|
|
||||||
|
|
||||||
import org.gcube.accounting.analytics.persistence.AccountingPersistenceQuery;
|
import org.gcube.accounting.analytics.persistence.AccountingPersistenceQuery;
|
||||||
import org.gcube.accounting.analytics.persistence.AccountingPersistenceQueryFactory;
|
import org.gcube.accounting.analytics.persistence.AccountingPersistenceQueryFactory;
|
||||||
import org.gcube.accounting.persistence.AccountingPersistence;
|
import org.gcube.accounting.persistence.AccountingPersistence;
|
||||||
|
@ -70,7 +68,7 @@ public class AccountingServiceInitializer implements ApplicationManager {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Closing the persistence connector used for insert
|
// Closing the persistence connector used for insert
|
||||||
accountingPersistence.flush(1, TimeUnit.SECONDS);
|
accountingPersistence.flush();
|
||||||
accountingPersistence.close();
|
accountingPersistence.close();
|
||||||
|
|
||||||
// Closing the persistence connector used for query
|
// Closing the persistence connector used for query
|
||||||
|
|
Loading…
Reference in New Issue