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

io.questdb.cutlass.line.tcp.AggressiveRecvLineTcpConnectionContext Maven / Gradle / Ivy

package io.questdb.cutlass.line.tcp;

import io.questdb.cutlass.line.tcp.LineTcpMeasurementScheduler.NetworkIOJob;

public class AggressiveRecvLineTcpConnectionContext extends LineTcpConnectionContext {
    AggressiveRecvLineTcpConnectionContext(LineTcpReceiverConfiguration configuration, LineTcpMeasurementScheduler scheduler) {
        super(configuration, scheduler);
    }

    @Override
    IOContextResult handleIO(NetworkIOJob netIoJob) {
        IOContextResult rc;
        read();
        do {
            rc = parseMeasurements(netIoJob);
        } while (rc == IOContextResult.NEEDS_READ && read());
        return rc;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy