org.apache.qpid.server
Interface ManagedChannel


public interface ManagedChannel

The managed interface exposed to allow management of channels.

Version:
0.1
Author:
Bhupendra Bhardwaj

Field Summary
static java.lang.String TYPE
           
 
Method Summary
 void commitTransactions()
          Commits the transactions if the channel is transactional.
 int getUnacknowledgedMessageCount()
          Tells the number of unacknowledged messages in this channel.
 boolean isTransactional()
          Tells whether the channel is transactional.
 void rollbackTransactions()
          Rollsback the transactions if the channel is transactional.
 

Field Detail

TYPE

static final java.lang.String TYPE
See Also:
Constant Field Values
Method Detail

isTransactional

boolean isTransactional()
                        throws java.io.IOException
Tells whether the channel is transactional.

Returns:
true if the channel is transactional.
Throws:
java.io.IOException

getUnacknowledgedMessageCount

int getUnacknowledgedMessageCount()
                                  throws java.io.IOException
Tells the number of unacknowledged messages in this channel.

Returns:
number of unacknowledged messages.
Throws:
java.io.IOException

commitTransactions

void commitTransactions()
                        throws java.io.IOException,
                               javax.management.JMException
Commits the transactions if the channel is transactional.

Throws:
java.io.IOException
javax.management.JMException

rollbackTransactions

void rollbackTransactions()
                          throws java.io.IOException,
                                 javax.management.JMException
Rollsback the transactions if the channel is transactional.

Throws:
java.io.IOException
javax.management.JMException