accounting-lib/src/main/java/org/gcube/accounting/messaging/ResourceAccounting.java

28 lines
615 B
Java

package org.gcube.accounting.messaging;
import org.gcube.accounting.datamodel.RawUsageRecord;
import org.gcube.accounting.persistence.Persistence;
/**
* This class has been created for backward compatibility.
* Use {@link #Persistence} class instead
* @author Luca Frosini (ISTI - CNR) http://www.lucafrosini.com/
*/
@Deprecated
public class ResourceAccounting {
protected Persistence persistence;
@Deprecated
public ResourceAccounting() {
persistence = Persistence.getInstance();
}
@Deprecated
public void sendAccountingMessage(RawUsageRecord message){
persistence.account(message);
}
}