public class NettyPartitionRequestListener extends Object implements PartitionRequestListener
PartitionRequestListener for netty partition request.| Constructor and Description |
|---|
NettyPartitionRequestListener(ResultPartitionProvider resultPartitionProvider,
NetworkSequenceViewReader reader,
ResultSubpartitionIndexSet subpartitionIndexSet,
ResultPartitionID resultPartitionId) |
NettyPartitionRequestListener(ResultPartitionProvider resultPartitionProvider,
NetworkSequenceViewReader reader,
ResultSubpartitionIndexSet subpartitionIndexSet,
ResultPartitionID resultPartitionId,
long createTimestamp) |
| Modifier and Type | Method and Description |
|---|---|
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 in interface PartitionRequestListenerpublic ResultPartitionID getResultPartitionId()
PartitionRequestListenergetResultPartitionId in interface PartitionRequestListenerpublic NetworkSequenceViewReader getViewReader()
PartitionRequestListenergetViewReader in interface PartitionRequestListenerpublic InputChannelID getReceiverId()
PartitionRequestListenergetReceiverId in interface PartitionRequestListenerpublic void notifyPartitionCreated(ResultPartition partition) throws IOException
PartitionRequestListenernotifyPartitionCreated in interface PartitionRequestListenerpartition - The registered partition.IOExceptionpublic void notifyPartitionCreatedTimeout()
PartitionRequestListenerPartitionNotFoundException.notifyPartitionCreatedTimeout in interface PartitionRequestListenerpublic void releaseListener()
PartitionRequestListenerreleaseListener in interface PartitionRequestListenerCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.