public class NettyPartitionRequestListener extends Object implements PartitionRequestListener
PartitionRequestListener for netty partition request.| 构造器和说明 |
|---|
NettyPartitionRequestListener(ResultPartitionProvider resultPartitionProvider,
NetworkSequenceViewReader reader,
ResultSubpartitionIndexSet subpartitionIndexSet,
ResultPartitionID resultPartitionId) |
NettyPartitionRequestListener(ResultPartitionProvider resultPartitionProvider,
NetworkSequenceViewReader reader,
ResultSubpartitionIndexSet subpartitionIndexSet,
ResultPartitionID resultPartitionId,
long createTimestamp) |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getCreateTimestamp()
The creation timestamp of this notifier, it's used to check whether the notifier is timeout.
|
InputChannelID |
getReceiverId()
Get the input channel id of the notifier.
|
ResultPartitionID |
getResultPartitionId()
Get the result partition id of the notifier.
|
NetworkSequenceViewReader |
getViewReader()
Get the view reader of the notifier.
|
void |
notifyPartitionCreated(ResultPartition partition)
Notify the partition request listener when the given partition is registered.
|
void |
notifyPartitionCreatedTimeout()
When the partition request listener is timeout, it will be notified to send
PartitionNotFoundException. |
void |
releaseListener()
Release this listener.
|
public NettyPartitionRequestListener(ResultPartitionProvider resultPartitionProvider, NetworkSequenceViewReader reader, ResultSubpartitionIndexSet subpartitionIndexSet, ResultPartitionID resultPartitionId)
@VisibleForTesting public NettyPartitionRequestListener(ResultPartitionProvider resultPartitionProvider, NetworkSequenceViewReader reader, ResultSubpartitionIndexSet subpartitionIndexSet, ResultPartitionID resultPartitionId, long createTimestamp)
public long getCreateTimestamp()
PartitionRequestListenergetCreateTimestamp 在接口中 PartitionRequestListenerpublic ResultPartitionID getResultPartitionId()
PartitionRequestListenergetResultPartitionId 在接口中 PartitionRequestListenerpublic NetworkSequenceViewReader getViewReader()
PartitionRequestListenergetViewReader 在接口中 PartitionRequestListenerpublic InputChannelID getReceiverId()
PartitionRequestListenergetReceiverId 在接口中 PartitionRequestListenerpublic void notifyPartitionCreated(ResultPartition partition) throws IOException
PartitionRequestListenernotifyPartitionCreated 在接口中 PartitionRequestListenerpartition - The registered partition.IOExceptionpublic void notifyPartitionCreatedTimeout()
PartitionRequestListenerPartitionNotFoundException.public void releaseListener()
PartitionRequestListenerreleaseListener 在接口中 PartitionRequestListenerCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.