Class RequestQueueManager

java.lang.Object
java.lang.Thread
org.medcare.igtl.network.RequestQueueManager
All Implemented Interfaces:
Runnable

public class RequestQueueManager extends Thread
RequestQueueManager create its own OpenIGTClient connected to one OpenIGTServer. Application add Messages request to RequestQueueManager queue. OpenIGTClient will send Messages to its OpenIGTServer respecting the order.
  • Field Details

  • Constructor Details

    • RequestQueueManager

      public RequestQueueManager(OpenIGTClient openIGTClient)
      Default RequestQueueManager constructor.
      Parameters:
      openIGTClient - managing this connection
  • Method Details

    • run

      public void run()
      Starts the thread and process requests in queue
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • addRequest

      public void addRequest(byte[] request)
      add a new request to the request queue
      Parameters:
      request -
    • destroy

      public void destroy()
      stop the thread
    • getSleepTime

      public long getSleepTime()
      ** Gets the current sleep time value return@ The sleep time value
    • setSleepTime

      public void setSleepTime(long sleep)
      Sets the time the listener thread will wait between actions
      Parameters:
      sleep -
    • getVersion

      public String getVersion()
      ** Gets the current version return@ The version value