com.bea.b2b.protocol.xocp.messaging
Class XOCPMessageToken

java.lang.Object
  |
  +--com.bea.b2b.protocol.messaging.MessageToken
        |
        +--com.bea.b2b.protocol.xocp.messaging.XOCPMessageToken

public class XOCPMessageToken
extends MessageToken

The XOCPMessageToken class represents a message token that is returned to the application upon sending an XOCP business message. The application can query this message token to check the delivery status for the associated business message.

For deferred synchronous delivery, the application can wait on the message token. For synchronous delivery, the application cannot wait on the message token.

Author:
Copyright © 2000 BEA Systems, Inc. All Rights Reserved.
See Also:
Serialized Form

Method Summary
 void waitForACK()
          Waits until all of the acknowledgements for the business message associated with this message token have been received.
 void waitForACK(long timeout)
          Waits until all of the acknowledgements for the business message associated with this message token have been received, or until the specified timeout is exceeded.
 
Methods inherited from class com.bea.b2b.protocol.messaging.MessageToken
getAllDeliveryStatus, getArrivalTime, getConversationId, getDeliveryStatus, getDestinations, getException, getMessageId, getSentTime, isReleased, timeTaken
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

waitForACK

public void waitForACK()
Waits until all of the acknowledgements for the business message associated with this message token have been received.

waitForACK

public void waitForACK(long timeout)
Waits until all of the acknowledgements for the business message associated with this message token have been received, or until the specified timeout is exceeded.

Parameters:
timeout - - Maximum time to wait, in milliseconds.