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()
PartitionRequestListener
getCreateTimestamp
in interface PartitionRequestListener
public ResultPartitionID getResultPartitionId()
PartitionRequestListener
getResultPartitionId
in interface PartitionRequestListener
public NetworkSequenceViewReader getViewReader()
PartitionRequestListener
getViewReader
in interface PartitionRequestListener
public InputChannelID getReceiverId()
PartitionRequestListener
getReceiverId
in interface PartitionRequestListener
public void notifyPartitionCreated(ResultPartition partition) throws IOException
PartitionRequestListener
notifyPartitionCreated
in interface PartitionRequestListener
partition
- The registered partition.IOException
public void notifyPartitionCreatedTimeout()
PartitionRequestListener
PartitionNotFoundException
.notifyPartitionCreatedTimeout
in interface PartitionRequestListener
public void releaseListener()
PartitionRequestListener
releaseListener
in interface PartitionRequestListener
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.