I am using the java api bindings.

I'd like to set a connection timeout on the Connect class as sometimes it takes just too long.

Is there any way/workaround?