I was able to run a local gpk and it runs once returning a railroad milepost location. What I need to do is to put the gpk on a thread and return the milepost location once every second or two. I am not sure how to do this or where the loop (timer) should go. Could somebody point me in the right direction? The method is in an attachment below.
Thanks,
Tom
Thank you for your comment and I apologize for not getting back sooner. I was able to use a thread coinciding with a GPTask. I initialized the local server in the initialize() method and then created a thread to run the GPSTask and everything is working.
Thanks
Hi Tom,
I would use a TimerTask (Java SE 10 & JDK 10 ) and Timer (Java SE 10 & JDK 10 ) for this,
Regards,
Gayle.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.