com.kolibrifx.plovercrest.server.internal.streams.RuntimeReadContinuation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plovercrest-server Show documentation
Show all versions of plovercrest-server Show documentation
Plovercrest server library.
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;
}
}