com.javaparts.dde
Class AsyncCompletedEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.javaparts.dde.DDEEvent
          extended bycom.javaparts.dde.AsyncCompletedEvent
All Implemented Interfaces:
java.io.Serializable

public class AsyncCompletedEvent
extends DDEEvent

This event is fired when asynchronouse transaction is completed.

See Also:
requestAsync, pokeAsync, executeAsync, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AsyncCompletedEvent(Conversation conv, java.lang.String tid)
          Create new instance of the Event
AsyncCompletedEvent(Conversation conv, java.lang.String tid, boolean status)
          Create new instance of the Event.
 
Method Summary
 java.lang.String getTransactionId()
          String identifier associated with this asynchronous transaction.
 byte[] getTransactionResult()
          Result of the asynchronous transaction, if applicable.
 boolean isDataAvailable()
          Whether data is available as a result of this transaction.
 boolean isSuccessful()
          Whether the transaction was successful.
protected  void setSuccess(boolean flag)
           
protected  void setTransactionResult(byte[] result)
           
 
Methods inherited from class com.javaparts.dde.DDEEvent
getConversation
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AsyncCompletedEvent

public AsyncCompletedEvent(Conversation conv,
                           java.lang.String tid,
                           boolean status)
Create new instance of the Event.

Parameters:
conv - conversation object that initiated this asynchronous transaction
tid - asynchronous transaction identifier
status - transaction status (true == success)

AsyncCompletedEvent

public AsyncCompletedEvent(Conversation conv,
                           java.lang.String tid)
Create new instance of the Event

Parameters:
conv - conversation object that initiated this asynchronous transaction
tid - asynchronous transaction identifier
Method Detail

getTransactionId

public java.lang.String getTransactionId()
String identifier associated with this asynchronous transaction.

See Also:
Conversation.executeAsync(String, String), Conversation.requestAsync(String, String), Conversation.pokeAsync(String, byte[], String)

getTransactionResult

public byte[] getTransactionResult()
Result of the asynchronous transaction, if applicable.

See Also:
isDataAvailable()

setTransactionResult

protected void setTransactionResult(byte[] result)

isSuccessful

public boolean isSuccessful()
Whether the transaction was successful.


setSuccess

protected void setSuccess(boolean flag)

isDataAvailable

public boolean isDataAvailable()
Whether data is available as a result of this transaction.