network.oxalis.inbound.DefaultInboundService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of oxalis-inbound Show documentation
Show all versions of oxalis-inbound Show documentation
Component for handling receiving.
package network.oxalis.inbound;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import network.oxalis.api.inbound.InboundMetadata;
import network.oxalis.api.inbound.InboundService;
import network.oxalis.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