Package org.apache.qpid.jms.provider
Class NoOpAsyncResult
java.lang.Object
org.apache.qpid.jms.provider.NoOpAsyncResult
- All Implemented Interfaces:
AsyncResult
Simple NoOp implementation used when the result of the operation does not matter.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the AsyncResult has completed.voidonFailure(ProviderException result) If the operation fails this method is invoked with the Exception that caused the failure.voidIf the operation succeeds the resulting value produced is set to null and the waiting parties are signaled.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
NoOpAsyncResult
public NoOpAsyncResult()
-
-
Method Details
-
onFailure
Description copied from interface:AsyncResultIf the operation fails this method is invoked with the Exception that caused the failure.- Specified by:
onFailurein interfaceAsyncResult- Parameters:
result- The error that resulted in this asynchronous operation failing.
-
onSuccess
public void onSuccess()Description copied from interface:AsyncResultIf the operation succeeds the resulting value produced is set to null and the waiting parties are signaled.- Specified by:
onSuccessin interfaceAsyncResult
-
isComplete
public 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 interfaceAsyncResult- Returns:
- returns true if the asynchronous operation has completed.
-