public interface NetworkSequenceViewReader
Modifier and Type | Method and Description |
---|---|
void |
addCredit(int creditDeltas)
The credits from consumer are added in incremental way.
|
Throwable |
getFailureCause() |
InputChannel.BufferAndAvailability |
getNextBuffer() |
InputChannelID |
getReceiverId() |
int |
getSequenceNumber() |
boolean |
isAvailable()
Checks whether this reader is available or not.
|
boolean |
isRegisteredAsAvailable() |
boolean |
isReleased() |
void |
notifySubpartitionConsumed() |
void |
releaseAllResources() |
void |
requestSubpartitionView(ResultPartitionProvider partitionProvider,
ResultPartitionID resultPartitionId,
int subPartitionIndex) |
void |
setRegisteredAsAvailable(boolean isRegisteredAvailable)
Updates the value to indicate whether the reader is enqueued in the pipeline or not.
|
void requestSubpartitionView(ResultPartitionProvider partitionProvider, ResultPartitionID resultPartitionId, int subPartitionIndex) throws IOException
IOException
InputChannel.BufferAndAvailability getNextBuffer() throws IOException, InterruptedException
IOException
InterruptedException
void addCredit(int creditDeltas)
creditDeltas
- The credit deltasboolean isAvailable()
boolean isRegisteredAsAvailable()
void setRegisteredAsAvailable(boolean isRegisteredAvailable)
isRegisteredAvailable
- True if this reader is already enqueued in the pipeline.void notifySubpartitionConsumed() throws IOException
IOException
boolean isReleased()
void releaseAllResources() throws IOException
IOException
Throwable getFailureCause()
InputChannelID getReceiverId()
int getSequenceNumber()
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.