public class MailClientTask extends Object implements com.aspose.ms.System.IAsyncResult, com.aspose.ms.System.IDisposable
Represents the task for mail client.
Modifier and Type | Field and Description |
---|---|
protected com.aspose.ms.System.AsyncCallback |
callback |
protected boolean |
canceled |
protected com.aspose.ms.System.Threading.ManualResetEvent |
commandCompletedEvent |
protected boolean |
disposed |
protected RuntimeException |
error |
protected Object |
lockObject |
protected Object |
state |
protected Object |
taskResult |
Constructor and Description |
---|
MailClientTask(com.aspose.ms.System.MulticastDelegate asyncDelegate,
com.aspose.ms.System.AsyncCallback callback,
Object state)
Initializes a new instance of the
MailClientTask class |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Finalizes operation.
|
com.aspose.ms.System.MulticastDelegate |
getAsyncDelegate()
The delegate object on which the async call was invoked.
|
Object |
getAsyncState()
Gets a user-defined object that qualifies or contains information about an asynchronous operation.
|
com.aspose.ms.System.Threading.WaitHandle |
getAsyncWaitHandle()
Gets a
T:System.Threading.WaitHandle that is used to wait for an asynchronous operation to complete. |
com.aspose.ms.System.AsyncCallback |
getCallback()
Deprecated.
|
com.aspose.ms.System.AsyncCallback |
getCallbackDelegate()
References a method to be called when a corresponding asynchronous operation completes.
|
boolean |
getCanceled()
Deprecated.
|
boolean |
getCompletedSynchronously()
Gets a value that indicates whether the asynchronous operation canceled.
|
RuntimeException |
getError()
Deprecated.
|
RuntimeException |
getErrorInfo()
Gets a value that represents operation error.
|
boolean |
isCanceled()
Gets a value that indicates whether the asynchronous operation completed synchronously.
|
boolean |
isCompleted()
Gets a value that indicates whether the asynchronous operation has completed.
|
protected boolean disposed
protected final Object lockObject
protected com.aspose.ms.System.Threading.ManualResetEvent commandCompletedEvent
protected com.aspose.ms.System.AsyncCallback callback
protected Object state
protected Object taskResult
protected RuntimeException error
protected boolean canceled
public MailClientTask(com.aspose.ms.System.MulticastDelegate asyncDelegate, com.aspose.ms.System.AsyncCallback callback, Object state)
Initializes a new instance of the MailClientTask
class
asyncDelegate
- The delegate object on which the async call was invoked.callback
- References a method to be called when a corresponding asynchronous operation completes.state
- Represents user-defined object that qualifies or contains information about an asynchronous operation.public boolean isCompleted()
Gets a value that indicates whether the asynchronous operation has completed.
isCompleted
in interface com.aspose.ms.System.IAsyncResult
public com.aspose.ms.System.Threading.WaitHandle getAsyncWaitHandle()
Gets a T:System.Threading.WaitHandle
that is used to wait for an asynchronous operation to complete.
getAsyncWaitHandle
in interface com.aspose.ms.System.IAsyncResult
T:System.Threading.WaitHandle
that is used to wait for an asynchronous operation to complete.public Object getAsyncState()
Gets a user-defined object that qualifies or contains information about an asynchronous operation.
getAsyncState
in interface com.aspose.ms.System.IAsyncResult
public boolean getCompletedSynchronously()
Gets a value that indicates whether the asynchronous operation canceled.
getCompletedSynchronously
in interface com.aspose.ms.System.IAsyncResult
public boolean isCanceled()
Gets a value that indicates whether the asynchronous operation completed synchronously.
@Deprecated public boolean getCanceled()
Gets a value that indicates whether the asynchronous operation completed synchronously.
public RuntimeException getErrorInfo()
Gets a value that represents operation error.
RuntimeException
object.@Deprecated public RuntimeException getError()
Gets a value that represents operation error.
RuntimeException
object.public com.aspose.ms.System.MulticastDelegate getAsyncDelegate()
The delegate object on which the async call was invoked.
MulticastDelegate
object.public com.aspose.ms.System.AsyncCallback getCallbackDelegate()
References a method to be called when a corresponding asynchronous operation completes.
AsyncCallback
object.@Deprecated public com.aspose.ms.System.AsyncCallback getCallback()
References a method to be called when a corresponding asynchronous operation completes.
AsyncCallback
object.public void dispose()
Finalizes operation.
dispose
in interface com.aspose.ms.System.IDisposable
Copyright (c) 2008-2015 Aspose Pty Ltd. All Rights Reserved.