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

com.kolibrifx.plovercrest.server.internal.streams.RuntimeReadContinuation Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2010-2017, KolibriFX AS. Licensed under the Apache License, version 2.0.
 */

package com.kolibrifx.plovercrest.server.internal.streams;

import com.kolibrifx.plovercrest.server.streams.PollableReader;

/**
 * Represents a runtime read continuation, that can be cached per client connection to speed up
 * execution of "read continue" commands.
 */
public class RuntimeReadContinuation {
    private final PollableReader reader;
    private final RangeStreamObserver observer;
    private final RangeReadInfo info;

    public RuntimeReadContinuation(final PollableReader reader,
                                   final RangeStreamObserver observer,
                                   final RangeReadInfo info) {
        this.reader = reader;
        this.observer = observer;
        this.info = info;
    }

    public PollableReader getReader() {
        return reader;
    }

    public RangeStreamObserver getObserver() {
        return observer;
    }

    public RangeReadInfo getInfo() {
        return info;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy