Class ClientNoOpStreamTracker
- java.lang.Object
-
- org.apache.qpid.protonj2.client.impl.ClientNoOpTracker
-
- org.apache.qpid.protonj2.client.impl.ClientNoOpStreamTracker
-
- All Implemented Interfaces:
StreamTracker,Tracker
public class ClientNoOpStreamTracker extends ClientNoOpTracker implements StreamTracker
A dummy Tracker instance that always indicates remote settlement and acceptance forStreamSenderinstances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StreamTrackerawaitSettlement()Waits if necessary for the remote to settle the sent delivery unless it has either already been settled or the original delivery was sent settled in which case the remote will not send aDispositionback.StreamTrackerawaitSettlement(long timeout, java.util.concurrent.TimeUnit unit)Waits if necessary for the remote to settle the sent delivery unless it has either already been settled or the original delivery was sent settled in which case the remote will not send aDispositionback.StreamTrackerdisposition(DeliveryState state, boolean settle)Updates the DeliveryState, and optionally settle the delivery as well.StreamSendersender()StreamTrackersettle()Settles the delivery locally, if notauto-settling.-
Methods inherited from class org.apache.qpid.protonj2.client.impl.ClientNoOpTracker
awaitAccepted, awaitAccepted, remoteSettled, remoteState, settled, settlementFuture, state
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.qpid.protonj2.client.StreamTracker
settlementFuture
-
Methods inherited from interface org.apache.qpid.protonj2.client.Tracker
awaitAccepted, awaitAccepted, remoteSettled, remoteState, settled, state
-
-
-
-
Method Detail
-
sender
public StreamSender sender()
Description copied from interface:StreamTracker- Specified by:
senderin interfaceStreamTracker- Specified by:
senderin interfaceTracker- Overrides:
senderin classClientNoOpTracker- Returns:
- the
Senderthat was used to send the delivery that is being tracked.
-
settle
public StreamTracker settle() throws ClientException
Description copied from interface:TrackerSettles the delivery locally, if notauto-settling.- Specified by:
settlein interfaceStreamTracker- Specified by:
settlein interfaceTracker- Overrides:
settlein classClientNoOpTracker- Returns:
- this
Trackerinstance. - Throws:
ClientException- if an error occurs while performing the settlement.
-
disposition
public StreamTracker disposition(DeliveryState state, boolean settle) throws ClientException
Description copied from interface:TrackerUpdates the DeliveryState, and optionally settle the delivery as well.- Specified by:
dispositionin interfaceStreamTracker- Specified by:
dispositionin interfaceTracker- Overrides:
dispositionin classClientNoOpTracker- Parameters:
state- the delivery state to applysettle- whether toTracker.settle()the delivery at the same time- Returns:
- this
Trackerinstance. - Throws:
ClientException- if an error occurs while applying the given disposition
-
awaitSettlement
public StreamTracker awaitSettlement() throws ClientException
Description copied from interface:TrackerWaits if necessary for the remote to settle the sent delivery unless it has either already been settled or the original delivery was sent settled in which case the remote will not send aDispositionback.- Specified by:
awaitSettlementin interfaceStreamTracker- Specified by:
awaitSettlementin interfaceTracker- Overrides:
awaitSettlementin classClientNoOpTracker- Returns:
- this
Trackerinstance. - Throws:
ClientException- if an error occurs while awaiting the remote settlement.
-
awaitSettlement
public StreamTracker awaitSettlement(long timeout, java.util.concurrent.TimeUnit unit) throws ClientException
Description copied from interface:TrackerWaits if necessary for the remote to settle the sent delivery unless it has either already been settled or the original delivery was sent settled in which case the remote will not send aDispositionback.- Specified by:
awaitSettlementin interfaceStreamTracker- Specified by:
awaitSettlementin interfaceTracker- Overrides:
awaitSettlementin classClientNoOpTracker- Parameters:
timeout- the maximum time to wait for the remote to settle.unit- the time unit of the timeout argument.- Returns:
- this
Trackerinstance. - Throws:
ClientException- if an error occurs while awaiting the remote settlement.
-
-