Class Requestor

    • Field Detail

      • logger

        private static final org.slf4j.Logger logger
      • stop

        protected boolean stop
      • stopped

        protected boolean stopped
      • started

        protected boolean started
      • count

        protected int count
      • sleepTime

        protected long sleepTime
      • maxCount

        protected int maxCount
      • responseCount

        protected int responseCount
      • startTime

        protected long startTime
      • username

        protected String username
      • password

        protected String password
    • Constructor Detail

      • Requestor

        public Requestor​(String name)
    • Method Detail

      • setRequestQueue

        public void setRequestQueue​(Destination requestQueue)
      • getCount

        public int getCount()
      • setSleepTime

        public void setSleepTime​(long sleepTime)
      • setMaxCount

        public void setMaxCount​(int maxCount)
      • clearMessages

        public void clearMessages()
      • stop

        public void stop()
      • isStopped

        public boolean isStopped()
      • isStarted

        public boolean isStarted()
      • setUsername

        public void setUsername​(String username)
      • setPassword

        public void setPassword​(String password)
      • run

        public void run()
        Specified by:
        run in interface Runnable
      • onMessage

        public void onMessage​(Message message)
        This method is used to asynchronously receive the responses to requests sent by the main loop.
        Specified by:
        onMessage in interface MessageListener
      • main

        public static void main​(String[] args)