Class NoOpAsyncResult
java.lang.Object
org.apache.qpid.protonj2.client.futures.NoOpAsyncResult
- All Implemented Interfaces:
- AsyncResult<Void>
Simple NoOp implementation used when the result of the operation does not matter.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final NoOpAsyncResultA singleton instance of the NoOpAsyncResult for use in client operation.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidIf the operation succeeds the resulting value produced is set to null and the waiting parties are signaled.voidfailed(ClientException result) If the operation fails this method is invoked with the Exception that caused the failure.booleanReturns true if the AsyncResult has completed.
- 
Field Details- 
INSTANCEA singleton instance of the NoOpAsyncResult for use in client operation.
 
- 
- 
Constructor Details- 
NoOpAsyncResultpublic NoOpAsyncResult()
 
- 
- 
Method Details- 
failedDescription copied from interface:AsyncResultIf the operation fails this method is invoked with the Exception that caused the failure.- Specified by:
- failedin interface- AsyncResult<Void>
- Parameters:
- result- The error that resulted in this asynchronous operation failing.
 
- 
completeDescription copied from interface:AsyncResultIf the operation succeeds the resulting value produced is set to null and the waiting parties are signaled.- Specified by:
- completein interface- AsyncResult<Void>
- Parameters:
- result- the object that completes the future.
 
- 
isCompletepublic boolean isComplete()Description copied from interface:AsyncResultReturns true if the AsyncResult has completed. The task is considered complete regardless if it succeeded or failed.- Specified by:
- isCompletein interface- AsyncResult<Void>
- Returns:
- returns true if the asynchronous operation has completed.
 
 
-