All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface bamboo.pipe.Consumer

public interface Consumer
extends Remote
Consumer remote interface. Consumers interact with BambooPipe server through this interface after login.

See Also:
BambooPipe

Method Index

 o beginTrans()
Begin an receive transaction.
 o commitTrans()
Commit current transaction
 o getProducerName()
Get producer name for current transaction
 o receiveObj()
Receive next object of the current transaction.
 o rollbackTrans()
Rollback current transaction

Methods

 o beginTrans
 public abstract void beginTrans() throws RemoteException, BPTransException
Begin an receive transaction.

Throws: RemoteException
remote errors
Throws: BPTransException
nothing in queue or transaction on-going
 o receiveObj
 public abstract Object receiveObj() throws RemoteException, BPTransException
Receive next object of the current transaction.

Throws: RemoteException
remote errors
Throws: BPTransException
no current transaction
 o commitTrans
 public abstract void commitTrans() throws RemoteException, BPTransException
Commit current transaction

Throws: RemoteException
remote errors
Throws: BPTransException
no current transaction or objects left
 o rollbackTrans
 public abstract void rollbackTrans() throws RemoteException, BPTransException
Rollback current transaction

Throws: RemoteException
remote errors
Throws: BPTransException
no current transaction
 o getProducerName
 public abstract String getProducerName() throws RemoteException, BPTransException
Get producer name for current transaction

Throws: RemoteException
remote errors
Throws: BPTransException
no current transaction or objects left

All Packages  Class Hierarchy  This Package  Previous  Next  Index