org.hornetq.api.jms.management
Interface ConnectionFactoryControl


public interface ConnectionFactoryControl

A ConnectionFactoryControl is used to manage a JMS ConnectionFactory.
HornetQ JMS ConnectionFactory uses an underlying ClientSessionFactory to connect to HornetQ servers. Please refer to the ClientSessionFactory for a detailed description.

Author:
Jeff Mesnil, Tim Fox
See Also:
ClientSessionFactory

Method Summary
 void addJNDI(String jndi)
          Add the JNDI binding to this destination
 long getCallTimeout()
           
 long getClientFailureCheckPeriod()
           
 String getClientID()
          Returns the Client ID of this connection factory (or null if it is not set.
 int getConfirmationWindowSize()
           
 String getConnectionLoadBalancingPolicyClassName()
           
 long getConnectionTTL()
           
 int getConsumerMaxRate()
           
 int getConsumerWindowSize()
           
 String getDiscoveryAddress()
           
 long getDiscoveryInitialWaitTimeout()
           
 int getDiscoveryPort()
           
 long getDiscoveryRefreshTimeout()
           
 int getDupsOKBatchSize()
          Returns the batch size (in bytes) between acknowledgements when using DUPS_OK_ACKNOWLEDGE mode.
 String getGroupID()
           
 int getInitialMessagePacketSize()
           
 String[] getJNDIBindings()
          Returns the JNDI bindings associated to this connection factory.
 String getLocalBindAddress()
           
 long getMaxRetryInterval()
           
 int getMinLargeMessageSize()
           
 String getName()
          Returns the configuration name of this connection factory.
 int getProducerMaxRate()
           
 int getProducerWindowSize()
           
 int getReconnectAttempts()
           
 long getRetryInterval()
           
 double getRetryIntervalMultiplier()
           
 int getScheduledThreadPoolMaxSize()
           
 List<Pair<TransportConfiguration,TransportConfiguration>> getStaticConnectors()
           
 int getThreadPoolMaxSize()
           
 int getTransactionBatchSize()
          Returns the batch size (in bytes) between acknowledgements when using a transacted session.
 boolean isAutoGroup()
           
 boolean isBlockOnAcknowledge()
           
 boolean isBlockOnDurableSend()
           
 boolean isBlockOnNonDurableSend()
           
 boolean isCacheLargeMessagesClient()
           
 boolean isFailoverOnInitialConnection()
           
 boolean isFailoverOnServerShutdown()
           
 boolean isPreAcknowledge()
           
 boolean isUseGlobalPools()
           
 void setAutoGroup(boolean autoGroup)
           
 void setBlockOnAcknowledge(boolean blockOnAcknowledge)
           
 void setBlockOnDurableSend(boolean blockOnDurableSend)
           
 void setBlockOnNonDurableSend(boolean blockOnNonDurableSend)
           
 void setCacheLargeMessagesClient(boolean cacheLargeMessagesClient)
           
 void setCallTimeout(long callTimeout)
           
 void setClientFailureCheckPeriod(long clientFailureCheckPeriod)
           
 void setClientID(String clientID)
          Sets the Client ID for this connection factory.
 void setConfirmationWindowSize(int confirmationWindowSize)
           
 void setConnectionLoadBalancingPolicyClassName(String connectionLoadBalancingPolicyClassName)
           
 void setConnectionTTL(long connectionTTL)
           
 void setConsumerMaxRate(int consumerMaxRate)
           
 void setConsumerWindowSize(int consumerWindowSize)
           
 void setDiscoveryAddress(String discoveryAddress)
           
 void setDiscoveryInitialWaitTimeout(long discoveryInitialWaitTimeout)
           
 void setDiscoveryPort(int discoveryPort)
           
 void setDiscoveryRefreshTimeout(long discoveryRefreshTimeout)
           
 void setDupsOKBatchSize(int dupsOKBatchSize)
           
 void setFailoverOnInitialConnection(boolean failoverOnInitialConnection)
           
 void setFailoverOnServerShutdown(boolean failoverOnServerShutdown)
           
 void setGroupID(String groupID)
           
 void setInitialMessagePacketSize(int size)
           
 void setLocalBindAddress(String localBindAddress)
           
 void setMaxRetryInterval(long retryInterval)
           
 void setMinLargeMessageSize(int minLargeMessageSize)
           
 void setPreAcknowledge(boolean preAcknowledge)
           
 void setProducerMaxRate(int producerMaxRate)
           
 void setProducerWindowSize(int producerWindowSize)
           
 void setReconnectAttempts(int reconnectAttempts)
           
 void setRetryInterval(long retryInterval)
           
 void setRetryIntervalMultiplier(double retryIntervalMultiplier)
           
 void setScheduledThreadPoolMaxSize(int scheduledThreadPoolMaxSize)
           
 void setStaticConnectors(List<Pair<TransportConfiguration,TransportConfiguration>> staticConnectors)
           
 void setThreadPoolMaxSize(int threadPoolMaxSize)
           
 void setTransactionBatchSize(int transactionBatchSize)
           
 void setUseGlobalPools(boolean useGlobalPools)
           
 

Method Detail

getName

String getName()
Returns the configuration name of this connection factory.


getJNDIBindings

String[] getJNDIBindings()
Returns the JNDI bindings associated to this connection factory.


getClientID

String getClientID()
Returns the Client ID of this connection factory (or null if it is not set.


setClientID

void setClientID(String clientID)
Sets the Client ID for this connection factory.


getClientFailureCheckPeriod

long getClientFailureCheckPeriod()
See Also:
ClientSessionFactory.getClientFailureCheckPeriod()

setClientFailureCheckPeriod

void setClientFailureCheckPeriod(long clientFailureCheckPeriod)
See Also:
ClientSessionFactory.setClientFailureCheckPeriod(long)

getCallTimeout

long getCallTimeout()
See Also:
ClientSessionFactory.getCallTimeout()

setCallTimeout

void setCallTimeout(long callTimeout)
See Also:
ClientSessionFactory.setCallTimeout(long)

getDupsOKBatchSize

int getDupsOKBatchSize()
Returns the batch size (in bytes) between acknowledgements when using DUPS_OK_ACKNOWLEDGE mode.

See Also:
ClientSessionFactory.getAckBatchSize(), Session.DUPS_OK_ACKNOWLEDGE

setDupsOKBatchSize

void setDupsOKBatchSize(int dupsOKBatchSize)
See Also:
ClientSessionFactory.setAckBatchSize(int)

getConsumerMaxRate

int getConsumerMaxRate()
See Also:
ClientSessionFactory.getConsumerMaxRate()

setConsumerMaxRate

void setConsumerMaxRate(int consumerMaxRate)
See Also:
ClientSessionFactory.setConsumerMaxRate(int)

getConsumerWindowSize

int getConsumerWindowSize()
See Also:
ClientSessionFactory.getConsumerWindowSize()

setConsumerWindowSize

void setConsumerWindowSize(int consumerWindowSize)
See Also:
ClientSessionFactory.setConfirmationWindowSize(int)

getProducerMaxRate

int getProducerMaxRate()
See Also:
ClientSessionFactory.getProducerMaxRate()

setProducerMaxRate

void setProducerMaxRate(int producerMaxRate)
See Also:
ClientSessionFactory.setProducerMaxRate(int)

getConfirmationWindowSize

int getConfirmationWindowSize()
See Also:
ClientSessionFactory.getConfirmationWindowSize()

setConfirmationWindowSize

void setConfirmationWindowSize(int confirmationWindowSize)
See Also:
ClientSessionFactory.setConfirmationWindowSize(int)

isBlockOnAcknowledge

boolean isBlockOnAcknowledge()
See Also:
ClientSessionFactory.isBlockOnAcknowledge()

setBlockOnAcknowledge

void setBlockOnAcknowledge(boolean blockOnAcknowledge)
See Also:
ClientSessionFactory.setBlockOnAcknowledge(boolean)

isBlockOnDurableSend

boolean isBlockOnDurableSend()
See Also:
ClientSessionFactory.isBlockOnDurableSend()

setBlockOnDurableSend

void setBlockOnDurableSend(boolean blockOnDurableSend)
See Also:
ClientSessionFactory.setBlockOnDurableSend(boolean)

isBlockOnNonDurableSend

boolean isBlockOnNonDurableSend()
See Also:
ClientSessionFactory.isBlockOnNonDurableSend()

setBlockOnNonDurableSend

void setBlockOnNonDurableSend(boolean blockOnNonDurableSend)
See Also:
ClientSessionFactory.setBlockOnNonDurableSend(boolean)

isPreAcknowledge

boolean isPreAcknowledge()
See Also:
ClientSessionFactory.isPreAcknowledge()

setPreAcknowledge

void setPreAcknowledge(boolean preAcknowledge)
See Also:
ClientSessionFactory.setPreAcknowledge(boolean)

getConnectionTTL

long getConnectionTTL()
See Also:
ClientSessionFactory.getConnectionTTL()

setConnectionTTL

void setConnectionTTL(long connectionTTL)
See Also:
ClientSessionFactory.setConnectionTTL(long)

getTransactionBatchSize

int getTransactionBatchSize()
Returns the batch size (in bytes) between acknowledgements when using a transacted session.

See Also:
ClientSessionFactory.getAckBatchSize()

setTransactionBatchSize

void setTransactionBatchSize(int transactionBatchSize)
See Also:
ClientSessionFactory.setAckBatchSize(int)

getMinLargeMessageSize

int getMinLargeMessageSize()
See Also:
ClientSessionFactory.getMinLargeMessageSize()

setMinLargeMessageSize

void setMinLargeMessageSize(int minLargeMessageSize)
See Also:
ClientSessionFactory.setMinLargeMessageSize(int)

isAutoGroup

boolean isAutoGroup()
See Also:
ClientSessionFactory.isAutoGroup()

setAutoGroup

void setAutoGroup(boolean autoGroup)
See Also:
ClientSessionFactory.setAutoGroup(boolean)

getRetryInterval

long getRetryInterval()
See Also:
ClientSessionFactory.getRetryInterval()

setRetryInterval

void setRetryInterval(long retryInterval)
See Also:
ClientSessionFactory.setRetryInterval(long)

getRetryIntervalMultiplier

double getRetryIntervalMultiplier()
See Also:
ClientSessionFactory.getRetryIntervalMultiplier()

setRetryIntervalMultiplier

void setRetryIntervalMultiplier(double retryIntervalMultiplier)
See Also:
ClientSessionFactory.setRetryIntervalMultiplier(double)

getReconnectAttempts

int getReconnectAttempts()
See Also:
ClientSessionFactory.getReconnectAttempts()

setReconnectAttempts

void setReconnectAttempts(int reconnectAttempts)
See Also:
ClientSessionFactory.setReconnectAttempts(int)

isFailoverOnInitialConnection

boolean isFailoverOnInitialConnection()
See Also:
ClientSessionFactory.isFailoverOnInitialConnection()

setFailoverOnInitialConnection

void setFailoverOnInitialConnection(boolean failoverOnInitialConnection)
See Also:
ClientSessionFactory.setFailoverOnInitialConnection(boolean)

isFailoverOnServerShutdown

boolean isFailoverOnServerShutdown()
See Also:
ClientSessionFactory.isFailoverOnServerShutdown()

setFailoverOnServerShutdown

void setFailoverOnServerShutdown(boolean failoverOnServerShutdown)
See Also:
ClientSessionFactory.setFailoverOnServerShutdown(boolean)

getDiscoveryRefreshTimeout

long getDiscoveryRefreshTimeout()
See Also:
ClientSessionFactory.getDiscoveryRefreshTimeout()

setDiscoveryRefreshTimeout

void setDiscoveryRefreshTimeout(long discoveryRefreshTimeout)
See Also:
ClientSessionFactory.setDiscoveryRefreshTimeout(long)

getDiscoveryInitialWaitTimeout

long getDiscoveryInitialWaitTimeout()
See Also:
ClientSessionFactory.getDiscoveryInitialWaitTimeout()

setDiscoveryInitialWaitTimeout

void setDiscoveryInitialWaitTimeout(long discoveryInitialWaitTimeout)
See Also:
ClientSessionFactory.setDiscoveryInitialWaitTimeout(long)

getProducerWindowSize

int getProducerWindowSize()
See Also:
ClientSessionFactory.getProducerWindowSize()

setProducerWindowSize

void setProducerWindowSize(int producerWindowSize)
See Also:
ClientSessionFactory.setProducerWindowSize(int)

isCacheLargeMessagesClient

boolean isCacheLargeMessagesClient()
See Also:
ClientSessionFactory.isCacheLargeMessagesClient()

setCacheLargeMessagesClient

void setCacheLargeMessagesClient(boolean cacheLargeMessagesClient)
See Also:
ClientSessionFactory.setCacheLargeMessagesClient(boolean)

getMaxRetryInterval

long getMaxRetryInterval()
See Also:
ClientSessionFactory.getMaxRetryInterval()

setMaxRetryInterval

void setMaxRetryInterval(long retryInterval)
See Also:
ClientSessionFactory.setMaxRetryInterval(long)

getScheduledThreadPoolMaxSize

int getScheduledThreadPoolMaxSize()
See Also:
ClientSessionFactory.getScheduledThreadPoolMaxSize()

setScheduledThreadPoolMaxSize

void setScheduledThreadPoolMaxSize(int scheduledThreadPoolMaxSize)
See Also:
ClientSessionFactory.setScheduledThreadPoolMaxSize(int)

getThreadPoolMaxSize

int getThreadPoolMaxSize()
See Also:
ClientSessionFactory.getThreadPoolMaxSize()

setThreadPoolMaxSize

void setThreadPoolMaxSize(int threadPoolMaxSize)
See Also:
ClientSessionFactory.setThreadPoolMaxSize(int)

getGroupID

String getGroupID()
See Also:
ClientSessionFactory.getGroupID()

setGroupID

void setGroupID(String groupID)
See Also:
ClientSessionFactory.setGroupID(String)

getInitialMessagePacketSize

int getInitialMessagePacketSize()
See Also:
ClientSessionFactory.getInitialMessagePacketSize()

setInitialMessagePacketSize

void setInitialMessagePacketSize(int size)
See Also:
ClientSessionFactory.setInitialMessagePacketSize(int)

isUseGlobalPools

boolean isUseGlobalPools()
See Also:
ClientSessionFactory.isUseGlobalPools()

setUseGlobalPools

void setUseGlobalPools(boolean useGlobalPools)
See Also:
ClientSessionFactory.setUseGlobalPools(boolean)

getConnectionLoadBalancingPolicyClassName

String getConnectionLoadBalancingPolicyClassName()
See Also:
ClientSessionFactory.getConnectionLoadBalancingPolicyClassName()

setConnectionLoadBalancingPolicyClassName

void setConnectionLoadBalancingPolicyClassName(String connectionLoadBalancingPolicyClassName)
See Also:
ClientSessionFactory.setConnectionLoadBalancingPolicyClassName(String)

getStaticConnectors

List<Pair<TransportConfiguration,TransportConfiguration>> getStaticConnectors()
See Also:
ClientSessionFactory.getStaticConnectors()

setStaticConnectors

void setStaticConnectors(List<Pair<TransportConfiguration,TransportConfiguration>> staticConnectors)
See Also:
ClientSessionFactory.setStaticConnectors(java.util.List)

getLocalBindAddress

String getLocalBindAddress()
See Also:
ClientSessionFactory.getLocalBindAddress()

setLocalBindAddress

void setLocalBindAddress(String localBindAddress)
See Also:
ClientSessionFactory.setLocalBindAddress(String)

getDiscoveryAddress

String getDiscoveryAddress()
See Also:
ClientSessionFactory.getDiscoveryAddress()

setDiscoveryAddress

void setDiscoveryAddress(String discoveryAddress)
See Also:
ClientSessionFactory.setDiscoveryAddress(String)

getDiscoveryPort

int getDiscoveryPort()
See Also:
ClientSessionFactory.getDiscoveryPort()

setDiscoveryPort

void setDiscoveryPort(int discoveryPort)
See Also:
ClientSessionFactory.setDiscoveryPort(int)

addJNDI

void addJNDI(String jndi)
             throws Exception
Add the JNDI binding to this destination

Throws:
Exception


Copyright © 2009 Red Hat Inc. All Rights Reserved.