org.jboss.messaging.core.client.impl
Class ClientConnectionFactoryImpl

java.lang.Object
  extended by org.jboss.messaging.core.client.impl.ClientConnectionFactoryImpl
All Implemented Interfaces:
ClientConnectionFactory

public class ClientConnectionFactoryImpl
extends java.lang.Object
implements ClientConnectionFactory

Core connection factory. Can be instantiate programmatically and used to make connections.

Version:
$Revision: 3602 $ $Id: ClientConnectionFactoryImpl.java 3602 2008-01-21 17:48:32Z timfox $
Author:
Tim Fox, Ovidiu Feodorov, Clebert Suconic, Jeff Mesnil, Andy Taylor

Constructor Summary
  ClientConnectionFactoryImpl(Location location)
           
  ClientConnectionFactoryImpl(Location location, ConnectionParams connectionParams)
           
protected ClientConnectionFactoryImpl(Location location, ConnectionParams connectionParams, boolean dummy)
           
  ClientConnectionFactoryImpl(Location location, ConnectionParams connectionParams, int defaultConsumerWindowSize, int defaultConsumerMaxRate, int defaultProducerWindowSize, int defaultProducerMaxRate, boolean defaultBlockOnAcknowledge, boolean defaultSendNonPersistentMessagesBlocking, boolean defaultSendPersistentMessagesBlocking)
           
 
Method Summary
 ClientConnection createConnection()
           
 ClientConnection createConnection(java.lang.String username, java.lang.String password)
           
 ConnectionParams getConnectionParams()
           
 int getDefaultConsumerMaxRate()
           
 int getDefaultConsumerWindowSize()
           
 int getDefaultProducerMaxRate()
           
 int getDefaultProducerWindowSize()
           
 Location getLocation()
           
 void setDefaultConsumerMaxRate(int rate)
           
 void setDefaultConsumerWindowSize(int size)
           
 void setDefaultProducerMaxRate(int rate)
           
 void setDefaultProducerWindowSize(int size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientConnectionFactoryImpl

public ClientConnectionFactoryImpl(Location location,
                                   ConnectionParams connectionParams,
                                   int defaultConsumerWindowSize,
                                   int defaultConsumerMaxRate,
                                   int defaultProducerWindowSize,
                                   int defaultProducerMaxRate,
                                   boolean defaultBlockOnAcknowledge,
                                   boolean defaultSendNonPersistentMessagesBlocking,
                                   boolean defaultSendPersistentMessagesBlocking)

ClientConnectionFactoryImpl

public ClientConnectionFactoryImpl(Location location)

ClientConnectionFactoryImpl

public ClientConnectionFactoryImpl(Location location,
                                   ConnectionParams connectionParams)

ClientConnectionFactoryImpl

protected ClientConnectionFactoryImpl(Location location,
                                      ConnectionParams connectionParams,
                                      boolean dummy)
Method Detail

createConnection

public ClientConnection createConnection()
                                  throws MessagingException
Specified by:
createConnection in interface ClientConnectionFactory
Throws:
MessagingException

createConnection

public ClientConnection createConnection(java.lang.String username,
                                         java.lang.String password)
                                  throws MessagingException
Specified by:
createConnection in interface ClientConnectionFactory
Throws:
MessagingException

getDefaultConsumerWindowSize

public int getDefaultConsumerWindowSize()
Specified by:
getDefaultConsumerWindowSize in interface ClientConnectionFactory

setDefaultConsumerWindowSize

public void setDefaultConsumerWindowSize(int size)
Specified by:
setDefaultConsumerWindowSize in interface ClientConnectionFactory

getDefaultProducerWindowSize

public int getDefaultProducerWindowSize()
Specified by:
getDefaultProducerWindowSize in interface ClientConnectionFactory

setDefaultProducerWindowSize

public void setDefaultProducerWindowSize(int size)
Specified by:
setDefaultProducerWindowSize in interface ClientConnectionFactory

getDefaultProducerMaxRate

public int getDefaultProducerMaxRate()
Specified by:
getDefaultProducerMaxRate in interface ClientConnectionFactory

setDefaultProducerMaxRate

public void setDefaultProducerMaxRate(int rate)
Specified by:
setDefaultProducerMaxRate in interface ClientConnectionFactory

getDefaultConsumerMaxRate

public int getDefaultConsumerMaxRate()
Specified by:
getDefaultConsumerMaxRate in interface ClientConnectionFactory

setDefaultConsumerMaxRate

public void setDefaultConsumerMaxRate(int rate)
Specified by:
setDefaultConsumerMaxRate in interface ClientConnectionFactory

getConnectionParams

public ConnectionParams getConnectionParams()
Specified by:
getConnectionParams in interface ClientConnectionFactory

getLocation

public Location getLocation()
Specified by:
getLocation in interface ClientConnectionFactory


Copyright © 2006 JBoss Inc. All Rights Reserved.