All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.infomaximum.cluster.component.service.remote.impl.RControllerInputStreamImpl Maven / Gradle / Ivy

package com.infomaximum.cluster.component.service.remote.impl;

import com.infomaximum.cluster.component.service.ServiceComponent;
import com.infomaximum.cluster.component.service.internal.service.ClusterInputStreamService;
import com.infomaximum.cluster.component.service.remote.RControllerInputStream;
import com.infomaximum.cluster.core.remote.AbstractRController;

public class RControllerInputStreamImpl extends AbstractRController implements RControllerInputStream {

    private final ClusterInputStreamService clusterInputStreamService;

    public RControllerInputStreamImpl(ServiceComponent component) {
        super(component);
        this.clusterInputStreamService = component.clusterInputStreamService;
    }

    @Override
    public byte[] next(int id, int limit) {
        return clusterInputStreamService.read(id, limit);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy