network.oxalis.ng.inbound.DefaultInboundService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of oxalis-ng-inbound Show documentation
Show all versions of oxalis-ng-inbound Show documentation
Component for handling receiving.
The newest version!
package network.oxalis.ng.inbound;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import network.oxalis.ng.api.inbound.InboundMetadata;
import network.oxalis.ng.api.inbound.InboundService;
import network.oxalis.ng.api.statistics.StatisticsService;
/**
* @author erlend
* @since 4.0.2
*/
@Singleton
public class DefaultInboundService implements InboundService {
private StatisticsService statisticsService;
@Inject
public DefaultInboundService(StatisticsService statisticsService) {
this.statisticsService = statisticsService;
}
@Override
public void complete(InboundMetadata inboundMetadata) {
statisticsService.persist(inboundMetadata);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy