public class ManagedConnectionFactoryConfig extends Object implements Serializable
ManagedConnectionFactoryConfig
store configuration of manages
outbound connectivity to a given JORAM server.Modifier and Type | Field and Description |
---|---|
boolean |
asyncSend
Determines whether the produced messages are asynchronously
sent or not (without or with acknowledgement)
Default is false (with ack).
|
private int |
cnxPendingTimer
Period in milliseconds between two ping requests sent by the client
connection to the server; if the server does not receive any ping
request during more than 2 * cnxPendingTimer, the connection is
considered as dead and processed as required.
|
private boolean |
collocated
true for collocated outbound connectivity. |
private int |
connectingTimer
Duration in seconds during which connecting is attempted (connecting
might take time if the server is temporarily not reachable); the 0 value
is set for connecting only once and aborting if connecting failed.
|
private String |
hostName
Underlying JORAM server host name.
|
private String |
identityClass
Default identityClass
|
private String |
inInterceptors
Comma separated list of IN interceptors.
|
private String |
mode |
static String |
MODE_PTP |
static String |
MODE_PUBSUB |
static String |
MODE_UNIFIED |
private boolean |
multiThreadSync
Determines whether client threads
which are using the same connection
are synchronized in order to group
together the requests they send.
|
private int |
multiThreadSyncDelay
The maximum time the threads hang if 'multiThreadSync' is true.
|
private String |
name |
private String |
outInterceptors
Comma separated list of OUT interceptors.
|
private String |
outLocalAddress
This is the local IP address on which the TCP connection is activated.
|
private int |
outLocalPort
This is the local IP address port on which the TCP connection is activated
|
private String |
password
Default user password.
|
private static long |
serialVersionUID |
private int |
serverPort
Underlying JORAM server port number. -1 if collocated
|
private int |
txPendingTimer
Duration in seconds during which a JMS transacted (non XA) session might
be pending; above that duration the session is rolled back and closed;
the 0 value means "no timer".
|
private String |
userName
Default user identification.
|
Constructor and Description |
---|
ManagedConnectionFactoryConfig()
Constructs a
ManagedConnectionFactoryConfig instance. |
private static final long serialVersionUID
private boolean collocated
true
for collocated outbound connectivity.private String hostName
private int serverPort
private String userName
private String password
private String identityClass
private int connectingTimer
private int txPendingTimer
private int cnxPendingTimer
public boolean asyncSend
private boolean multiThreadSync
private int multiThreadSyncDelay
Default is 1 ms.
private String outLocalAddress
private int outLocalPort
private String inInterceptors
private String outInterceptors
public static final String MODE_UNIFIED
public static final String MODE_PTP
public static final String MODE_PUBSUB
private String mode
private String name
public ManagedConnectionFactoryConfig()
ManagedConnectionFactoryConfig
instance.public Integer getConnectingTimer()
public void setConnectingTimer(Integer connectingTimer)
public Integer getTxPendingTimer()
public void setTxPendingTimer(Integer txPendingTimer)
public Integer getCnxPendingTimer()
public void setCnxPendingTimer(Integer cnxPendingTimer)
public Boolean getAsyncSend()
public void setAsyncSend(Boolean asyncSend)
public boolean isAsyncSend()
public Boolean getMultiThreadSync()
public void setMultiThreadSync(Boolean multiThreadSync)
public boolean isMultiThreadSync()
public Integer getMultiThreadSyncDelay()
public void setMultiThreadSyncDelay(Integer multiThreadSyncDelay)
protected void setParameters(Object factory)
public void setCollocated(Boolean collocated)
public void setHostName(String hostName)
public void setServerPort(Integer serverPort)
public void setUserName(String userName)
public void setPassword(String password)
public void setIdentityClass(String identityClass)
public Boolean isCollocated()
public String getHostName()
public Integer getServerPort()
public String getUserName()
String getPassword()
public String getIdentityClass()
public String getOutLocalAddress()
public Integer getOutLocalPort()
public void setOutLocalAddress(String outLocalAddress)
public void setOutLocalPort(Integer outLocalPort)
public void setOutInterceptors(String outInterceptors)
public void setInInterceptors(String inInterceptors)
public String getMode()
public void setMode(String mode)
mode
- the mode to setpublic String getName()
public void setName(String name)
name
- the name to setpublic void setManagedConnectionFactoryConfig(Properties props)
Copyright © 2020 ScalAgent D.T.. All rights reserved.