Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.codehaus.activemq.message
Class ReceiptHolder

    java.lang.Object
      org.codehaus.activemq.message.ReceiptHolder

public class ReceiptHolder
extends Object

ReceiptHolder is a utility class used for waiting for receipts from Packets sent to the broker

Version:
  $Revision: 1.5 $

Constructor Summary
`ReceiptHolder()` Construct a receipt holder

Method Summary
`void` | `close()` close this holder
`Receipt` | `getReceipt()` Get the Receipt
`Receipt` | `getReceipt(int timeout)` wait upto `timeout` timeout ms to get a receipt
`void` | `setReceipt(Receipt r)` Set the Receipt for this holder

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ReceiptHolder

    public ReceiptHolder()

  Construct a receipt holder

Method Detail

### setReceipt

    public void setReceipt(Receipt r)

  Set the Receipt for this holder

  Parameters:
    `r` -

### getReceipt

    public Receipt getReceipt()

  Get the Receipt

  Returns:
    the Receipt or null if it is closed

### getReceipt

    public Receipt getReceipt(int timeout)

  wait upto `timeout` timeout ms to get a receipt

  Parameters:
    `timeout` -
  Returns:

### close

    public void close()

  close this holder

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 Protique, Ltd.. All Rights Reserved.