|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ManagedConnection
The management interface exposed to allow management of Connections.
Field Summary | |
---|---|
static java.lang.String |
TYPE
|
Method Summary | |
---|---|
void |
closeChannel(int channelId)
Unsubscribes the consumers and unregisters the channel from managed objects. |
void |
closeConnection()
Closes all the related channels and unregisters this connection from managed objects. |
void |
commitTransactions(int channelId)
Commits the transactions if the channel is transactional. |
javax.management.openmbean.TabularData |
getChannels()
channel details of all the channels opened for this connection. |
java.util.Date |
getLastIoTime()
Tells the last time, the IO operation was done. |
java.lang.Long |
getMaximumNumberOfAllowedChannels()
Tells the maximum number of channels that can be opened using this connection. |
java.lang.Long |
getReadBytes()
Tells the total number of bytes read till now. |
java.lang.String |
getRemoteAddress()
Tells the remote address of this connection. |
java.lang.Long |
getWrittenBytes()
Tells the total number of bytes written till now. |
void |
rollbackTransactions(int channelId)
Rollsback the transactions if the channel is transactional. |
void |
setMaximumNumberOfAllowedChannels(java.lang.Long value)
Sets the maximum number of channels allowed to be created using this connection. |
Field Detail |
---|
static final java.lang.String TYPE
Method Detail |
---|
javax.management.openmbean.TabularData getChannels() throws java.io.IOException, javax.management.JMException
java.io.IOException
javax.management.JMException
java.util.Date getLastIoTime()
java.lang.String getRemoteAddress()
java.lang.Long getWrittenBytes()
java.lang.Long getReadBytes()
java.lang.Long getMaximumNumberOfAllowedChannels()
void setMaximumNumberOfAllowedChannels(java.lang.Long value)
value
- void closeConnection() throws java.lang.Exception
java.lang.Exception
void closeChannel(int channelId) throws java.lang.Exception
java.lang.Exception
void commitTransactions(int channelId) throws javax.management.JMException
channelId
-
javax.management.JMException
void rollbackTransactions(int channelId) throws javax.management.JMException
channelId
-
javax.management.JMException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |