public class StreamRegulator extends Object
| Constructor and Description |
|---|
StreamRegulator(long bitPerSecond,
int maxWrittenChunksInFlight,
int maxWrittenChunkSizeInBytes) |
| Modifier and Type | Method and Description |
|---|---|
DataInputBlobReader<RawDataSchema> |
getBlobReader() |
DataOutputBlobWriter<RawDataSchema> |
getBlobWriter() |
long |
getBytesRead() |
long |
getBytesWritten() |
DataInput |
getDataInput() |
DataOutput |
getDataOutput() |
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
boolean |
hasNextChunk()
Blocks until the desired time as passed to ensure this stream conforms to the requested bits per second.
|
boolean |
hasRoomForChunk()
Blocks until the desired time as passed to ensure this stream conforms to the requested bits per second.
|
void |
shutdown() |
String |
toString() |
public StreamRegulator(long bitPerSecond,
int maxWrittenChunksInFlight,
int maxWrittenChunkSizeInBytes)
public InputStream getInputStream()
public DataInput getDataInput()
public DataInputBlobReader<RawDataSchema> getBlobReader()
public final boolean hasNextChunk()
public void shutdown()
public OutputStream getOutputStream()
public DataOutput getDataOutput()
public final boolean hasRoomForChunk()
public long getBytesWritten()
public long getBytesRead()
public DataOutputBlobWriter<RawDataSchema> getBlobWriter()
Copyright © 2018. All Rights Reserved.