Properly cast network autorecovery interval to long for java lib