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
-
beginTrans()
- Begin an receive transaction.
-
commitTrans()
- Commit current transaction
-
getProducerName()
- Get producer name for current transaction
-
receiveObj()
- Receive next object of the current transaction.
-
rollbackTrans()
- Rollback current transaction
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
receiveObj
public abstract Object receiveObj() throws RemoteException, BPTransException
- Receive next object of the current transaction.
- Throws: RemoteException
- remote errors
- Throws: BPTransException
- no current transaction
commitTrans
public abstract void commitTrans() throws RemoteException, BPTransException
- Commit current transaction
- Throws: RemoteException
- remote errors
- Throws: BPTransException
- no current transaction or objects left
rollbackTrans
public abstract void rollbackTrans() throws RemoteException, BPTransException
- Rollback current transaction
- Throws: RemoteException
- remote errors
- Throws: BPTransException
- no current transaction
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