PD4ML v4 Forums PD4ML v3 Archived Forums (Read Only) General questions / FAQ How to use the PD4Constants.PD4ML_SOCKET_TIMEOUT setting

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #27077

    I cannot find any documentation/examples on how I use the new PD4Constants.PD4ML_SOCKET_TIMEOUT setting. I assume I do something similar to the following; if so, what should the value be? A String? A Long? And is this timeout in seconds? Milliseconds?

    Thanks!

    <br /> PD4ML pd4ml = new PD4ML();<br /> HashMap map = new HashMap();<br /> map.put(PD4Constants.PD4ML_SOCKET_TIMEOUT , "60");<br /> pd4ml.setDynamicParams(map);<br />

    #29876

    The above code is correct, however the value probably is too small. It is in milliseconds and after conversion to int, passed to

    URLConnection.setConnectTimeout(connectionTimeout);
    URLConnection.setReadTimeout(connectionTimeout);

Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘General questions / FAQ’ is closed to new topics and replies.