Class ClientSender
- All Implemented Interfaces:
- AutoCloseable,- Link<Sender>,- Sender
- 
Field SummaryFields inherited from class org.apache.qpid.protonj2.client.impl.ClientSenderLinkTypeprotonSenderFields inherited from class org.apache.qpid.protonj2.client.impl.ClientLinkTypeclosed, CLOSED_UPDATER, closeFuture, executor, failureCause, linkId, linkRemotelyClosedHandler, openFuture, remoteSource, remoteTarget, session
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidlinkSpecificCleanupHandler(ClientException failureCause) protected voidprotected voidprotected voidprotected voidprotected voidprotected Senderself()Send the given message immediately if there is credit available or blocks if the link has not yet been granted credit.Send the given message immediately if there is credit available or blocks if the link has not yet been granted credit.Send the given message if credit is available or returns null if no credit has been granted to the link at the time of the send attempt.Send the given message if credit is available or returns null if no credit has been granted to the link at the time of the send attempt.Methods inherited from class org.apache.qpid.protonj2.client.impl.ClientSenderLinkTypeprotonLinkMethods inherited from class org.apache.qpid.protonj2.client.impl.ClientLinkTypeaddress, checkClosedOrFailed, client, close, close, closeAsync, closeAsync, connection, desiredCapabilities, detach, detach, detachAsync, detachAsync, handleEngineShutdown, handleLocalCloseOrDetach, handleLocalOpen, handleParentEndpointClosed, handleRemoteCloseOrDetach, handleRemoteOpen, immediateLinkShutdown, notClosedOrFailed, notClosedOrFailed, offeredCapabilities, openFuture, properties, session, source, target, waitForOpenToCompleteMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.qpid.protonj2.client.Linkaddress, client, close, close, closeAsync, closeAsync, connection, desiredCapabilities, detach, detach, detachAsync, detachAsync, offeredCapabilities, openFuture, properties, session, source, target
- 
Method Details- 
sendDescription copied from interface:SenderSend the given message immediately if there is credit available or blocks if the link has not yet been granted credit.Upon successfully sending the message the methods returns a Trackerthat can be used to await settlement of the message from the remote. If the sender has been configured to send the message pre-settled then the resulting Tracker will immediately report the message as remotely settlement and accepted.- Specified by:
- sendin interface- Sender
- Parameters:
- message- the- Messageto send.
- Returns:
- the Trackerfor the message delivery
- Throws:
- ClientException- if an error occurs while initiating the send operation.
 
- 
sendpublic Tracker send(Message<?> message, Map<String, Object> deliveryAnnotations) throws ClientExceptionDescription copied from interface:SenderSend the given message immediately if there is credit available or blocks if the link has not yet been granted credit. The provided delivery annotations are encoded along with the message, the annotations can be passed repeatedly to send calls if sending the same delivery annotations with each message.Upon successfully sending the message the methods returns a Trackerthat can be used to await settlement of the message from the remote. If the sender has been configured to send the message pre-settled then the resulting Tracker will immediately report the message as remotely settlement and accepted.- Specified by:
- sendin interface- Sender
- Parameters:
- message- the- Messageto send.
- deliveryAnnotations- the delivery annotations that should be included in the sent- Message.
- Returns:
- the Trackerfor the message delivery
- Throws:
- ClientException- if an error occurs while initiating the send operation.
 
- 
trySendDescription copied from interface:SenderSend the given message if credit is available or returns null if no credit has been granted to the link at the time of the send attempt.Upon successfully sending the message the methods returns a Trackerthat can be used to await settlement of the message from the remote. If the sender has been configured to send the message pre-settled then the resulting Tracker will immediately report the message as remotely settlement and accepted.- Specified by:
- trySendin interface- Sender
- Parameters:
- message- the- Messageto send if credit is available.
- Returns:
- the Trackerfor the message delivery or null if no credit for sending.
- Throws:
- ClientException- if an error occurs while initiating the send operation.
 
- 
trySendpublic Tracker trySend(Message<?> message, Map<String, Object> deliveryAnnotations) throws ClientExceptionDescription copied from interface:SenderSend the given message if credit is available or returns null if no credit has been granted to the link at the time of the send attempt. The provided delivery annotations are encoded along with the message, the annotations can be passed repeatedly to send calls if sending the same delivery annotations with each message.Upon successfully sending the message the methods returns a Trackerthat can be used to await settlement of the message from the remote. If the sender has been configured to send the message pre-settled then the resulting Tracker will immediately report the message as remotely settlement and accepted.- Specified by:
- trySendin interface- Sender
- Parameters:
- message- the- Messageto send if credit is available.
- deliveryAnnotations- the delivery annotations that should be included in the sent- Message.
- Returns:
- the Trackerfor the message delivery or null if no credit for sending.
- Throws:
- ClientException- if an error occurs while initiating the send operation.
 
- 
self- Specified by:
- selfin class- ClientLinkType<Sender,- Sender> 
 
- 
linkSpecificLocalOpenHandlerprotected void linkSpecificLocalOpenHandler()- Specified by:
- linkSpecificLocalOpenHandlerin class- ClientLinkType<Sender,- Sender> 
 
- 
recreateLinkForReconnectprotected void recreateLinkForReconnect()- Specified by:
- recreateLinkForReconnectin class- ClientLinkType<Sender,- Sender> 
 
- 
linkSpecificCleanupHandler- Specified by:
- linkSpecificCleanupHandlerin class- ClientLinkType<Sender,- Sender> 
 
- 
linkSpecificLocalCloseHandlerprotected void linkSpecificLocalCloseHandler()- Specified by:
- linkSpecificLocalCloseHandlerin class- ClientLinkType<Sender,- Sender> 
 
- 
linkSpecificRemoteOpenHandlerprotected void linkSpecificRemoteOpenHandler()- Specified by:
- linkSpecificRemoteOpenHandlerin class- ClientLinkType<Sender,- Sender> 
 
- 
linkSpecificRemoteCloseHandlerprotected void linkSpecificRemoteCloseHandler()- Specified by:
- linkSpecificRemoteCloseHandlerin class- ClientLinkType<Sender,- Sender> 
 
 
-