Internal API configuration. This class holds the configuration for the smppapi. On initialisation, it searches for a file named "smppapi.properties". This file needs to be locatable in the classpath in one of the following locations: /, /ie, /ie/omk, /ie/omk/smpp or the default classloader for this class must be able to find it.
Most applications can probably accept the default settings of the API. If, however, you're trying to eke maximum performance out of your application, tweaking these settings may help.
Property name | Type | Description |
smppapi.lax_versions | Boolean | Enable or disable interpreting interface_version values of 0x00 thru 0x32 (inclusive) as SMPP version 3.3. The specification is not entirely clear in its statement on whether this is allowed or not. |
smppapi.net.buffersize_in | Integer | Sets the size of the buffer used on the incoming stream connection from the SMSC. A plain value specified the number of bytes. A suffix of 'k' after the number will be interpreted as kilobytes and a suffix of 'm' will be interpreted as megabytes. For example, 4k will allocate a buffer size of 4096 bytes. |
smppapi.net.buffersize_out | Integer | Sets the size of the buffer used on the outgoing stream connection to the SMSC. A plain value specified the number of bytes. A suffix of 'k' after the number will be interpreted as kilobytes and a suffix of 'm' will be interpreted as megabytes. For example, 4k will allocate a buffer size of 4096 bytes. |
smppapi.net.autoflush | Boolean | By default, the {@link ie.omk.smpp.net.SmscLink}class automatically flushes the output stream after every packet written to the output stream. In high-load environments, it may be better to turn this off and manually flush the output stream only when required (after a short period of inactivity, for example). |
smppapi.net.autoclose_snoop | Boolean | If snoop streams are set on the SMSC link object and this value is true (the default), the snoop streams will be closed when the link is closed. If false, the snoop streams will be flushed and left open when the link is closed. |
smppapi.net.link_timeout | Long | Sets the timeout in milliseconds for network links. This value affects how long network reads should block for but its exact interpretation is link-implementation specific. For TcpLink , this value represents the SO_TIMEOUT setting on the TCP/IP socket. |
smppapi.connection.bind_timeout | Long | The length of time, in milliseconds, to wait for a bind response packet after sending a bind request. If a packet is not received within this time period, the network connection is closed. A negative value or zero means wait indefinitely. |
smppapi.connection.rcv_daemon.ioex_count | Integer | The number of I/O exceptions the receiver daemon will accept occurring before exiting. |
smppapi.event.dispatcher | String | The name of a class which implements the {@link ie.omk.smpp.event.EventDispatcher}which will be used as the default event dispatcher for Connection objects. |
smppapi.event.threaded_dispatcher.pool_size | Integer | The size of the thread pool used by the {@link ie.omk.smpp.event.ThreadedEventDispatcher}class. |
smppapi.event.threaded_dispatcher.queue_size | Integer | The size of the event FIFO queue used in the ie.omk.smpp.event.ThreadedEventDispatcher class. |