Class Publisher

  • All Implemented Interfaces:
    Runnable

    public class Publisher
    extends Object
    implements Runnable
    This issues messages to a specified destination. You can use many of the properties to control the content of the message.
    • 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
      • username

        protected String username
      • password

        protected String password
    • Constructor Detail

      • Publisher

        public Publisher​(String name)
    • Method Detail

      • setDestination

        public void setDestination​(Destination destination)
      • 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
      • main

        public static void main​(String[] args)