Class ClientReceiverLinkType<ReceiverType extends Link<ReceiverType>>
java.lang.Object
org.apache.qpid.protonj2.client.impl.ClientLinkType<ReceiverType,Receiver>
org.apache.qpid.protonj2.client.impl.ClientReceiverLinkType<ReceiverType>
- Type Parameters:
ReceiverType- The client receiver type that is being implemented.
- All Implemented Interfaces:
AutoCloseable,Link<ReceiverType>
- Direct Known Subclasses:
ClientReceiver,ClientStreamReceiver
public abstract class ClientReceiverLinkType<ReceiverType extends Link<ReceiverType>>
extends ClientLinkType<ReceiverType,Receiver>
Base class for client link types that wrap a proton receiver to provide
delivery dispatch in some manner.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ClientFuture<ReceiverType>protected Future<?>protected ReceiverFields inherited from class org.apache.qpid.protonj2.client.impl.ClientLinkType
closed, CLOSED_UPDATER, closeFuture, executor, failureCause, linkId, linkRemotelyClosedHandler, openFuture, options, remoteSource, remoteTarget, session -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedClientReceiverLinkType(ClientSession session, String linkId, LinkOptions<?> options, Receiver protonReceiver) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidhandleDeliveryAborted(IncomingDelivery delivery) protected abstract voidhandleDeliveryRead(IncomingDelivery delivery) protected voidprotected voidhandleReceiverCreditUpdated(Receiver receiver) protected voidlinkSpecificCleanupHandler(ClientException failureCause) protected voidprotected voidprotected voidprotected voidprotected Receiverprotected abstract voidMethods inherited from class org.apache.qpid.protonj2.client.impl.ClientLinkType
address, checkClosedOrFailed, client, close, close, closeAsync, closeAsync, connection, desiredCapabilities, detach, detach, detachAsync, detachAsync, handleEngineShutdown, handleLocalCloseOrDetach, handleLocalOpen, handleParentEndpointClosed, handleRemoteCloseOrDetach, handleRemoteOpen, immediateLinkShutdown, notClosedOrFailed, notClosedOrFailed, offeredCapabilities, openFuture, properties, recreateLinkForReconnect, self, session, source, target, waitForOpenToComplete
-
Field Details
-
drainingFuture
-
drainingTimeout
-
protonReceiver
-
-
Constructor Details
-
ClientReceiverLinkType
protected ClientReceiverLinkType(ClientSession session, String linkId, LinkOptions<?> options, Receiver protonReceiver)
-
-
Method Details
-
protonLink
- Specified by:
protonLinkin classClientLinkType<ReceiverType extends Link<ReceiverType>,Receiver>
-
replenishCreditIfNeeded
protected abstract void replenishCreditIfNeeded() -
handleDeliveryRead
-
handleDeliveryAborted
-
handleDeliveryStateRemotelyUpdated
-
handleReceiverCreditUpdated
-
linkSpecificLocalOpenHandler
protected void linkSpecificLocalOpenHandler()- Specified by:
linkSpecificLocalOpenHandlerin classClientLinkType<ReceiverType extends Link<ReceiverType>,Receiver>
-
linkSpecificRemoteOpenHandler
protected void linkSpecificRemoteOpenHandler()- Specified by:
linkSpecificRemoteOpenHandlerin classClientLinkType<ReceiverType extends Link<ReceiverType>,Receiver>
-
linkSpecificLocalCloseHandler
protected void linkSpecificLocalCloseHandler()- Specified by:
linkSpecificLocalCloseHandlerin classClientLinkType<ReceiverType extends Link<ReceiverType>,Receiver>
-
linkSpecificRemoteCloseHandler
protected void linkSpecificRemoteCloseHandler()- Specified by:
linkSpecificRemoteCloseHandlerin classClientLinkType<ReceiverType extends Link<ReceiverType>,Receiver>
-
linkSpecificCleanupHandler
- Specified by:
linkSpecificCleanupHandlerin classClientLinkType<ReceiverType extends Link<ReceiverType>,Receiver>
-