13.4. The Hot Rod Interface Connector The following enables a Hot Rod server using the hotrod socket binding. The connector creates a supporting topology cache with default settings. These settings can be tuned by adding the <topology-state-transfer /> child element to the connector as follows: The Hot Rod connector can be tuned with additional settings. See Section 13.4.1, "Configure Hot Rod Connectors" for more information on how to configure the Hot Rod connector. Note The Hot Rod connector can be secured using SSL. See the Hot Rod Authentication Using SASL section of the Developer Guide for more information. Report a bug 13.4.1. Configure Hot Rod Connectors The following procedure describes the attributes used to configure the Hot Rod connector in Red Hat JBoss Data Grid's Remote Client-Server Mode. Both the hotrod-connector and topology-state-transfer elements must be configured based on the following procedure. Procedure 13.1. Configuring Hot Rod Connectors for Remote Client-Server Mode The hotrod-connector element defines the configuration elements for use with Hot Rod. The socket-binding parameter specifies the socket binding port used by the Hot Rod connector. This is a mandatory parameter. The cache-container parameter names the cache container used by the Hot Rod connector. This is a mandatory parameter. The worker-threads parameter specifies the number of worker threads available for the Hot Rod connector. The default value for this parameter is 160 . This is an optional parameter. The idle-timeout parameter specifies the time (in milliseconds) the connector can remain idle before the connection times out. The default value for this parameter is -1 , which means that no timeout period is set. This is an optional parameter. The tcp-nodelay parameter specifies whether TCP packets will be delayed and sent out in batches. Valid values for this parameter are true and false . The default value for this parameter is true . This is an optional parameter. The send-buffer-size parameter indicates the size of the send buffer for the Hot Rod connector. The default value for this parameter is the size of the TCP stack buffer. This is an optional parameter. The receive-buffer-size parameter indicates the size of the receive buffer for the Hot Rod connector. The default value for this parameter is the size of the TCP stack buffer. This is an optional parameter. The topology-state-transfer element specifies the topology state transfer configurations for the Hot Rod connector. This element can only occur once within a hotrod-connector element. The lock-timeout parameter specifies the time (in milliseconds) after which the operation attempting to obtain a lock times out. The default value for this parameter is 10 seconds. This is an optional parameter. The replication-timeout parameter specifies the time (in milliseconds) after which the replication operation times out. The default value for this parameter is 10 seconds. This is an optional parameter. The external-host parameter specifies the hostname sent by the Hot Rod server to clients listed in the topology information. The default value for this parameter is the host address. This is an optional parameter. The external-port parameter specifies the port sent by the Hot Rod server to clients listed in the topology information. The default value for this parameter is the configured port. This is an optional parameter. The lazy-retrieval parameter indicates whether the Hot Rod connector will carry out retrieval operations lazily. The default value for this parameter is true . This is an optional parameter. The await-initial-transfer parameter specifies whether the initial state retrieval happens immediately at startup. This parameter only applies when lazy-retrieval is set to false . This default value for this parameter is true . Report a bug

Commands:
<hotrod-connector socket-binding="hotrod" cache-container="local" />
<hotrod-connector socket-binding="hotrod" cache-container="local"> <topology-state-transfer lazy-retrieval="false" lock-timeout="1000" replication-timeout="5000" /> </hotrod-connector>
<subsystem xmlns="urn:infinispan:server:endpoint:6.1"> <hotrod-connector socket-binding="hotrod" cache-container="local" worker-threads="USD{VALUE}" idle-timeout="USD{VALUE}" tcp-nodelay="USD{TRUE/FALSE}" send-buffer-size="USD{VALUE}" receive-buffer-size="USD{VALUE}" /> <topology-state-transfer lock-timeout"="USD{MILLISECONDS}" replication-timeout="USD{MILLISECONDS}" external-host="USD{HOSTNAME}" external-port="USD{PORT}" lazy-retrieval="USD{TRUE/FALSE}" await-initial-transfer="USD{TRUE/FALSE}" /> </subsystem>