Class GroupChannel.HeartbeatThread

  • All Implemented Interfaces:
    Runnable
    Enclosing class:
    GroupChannel

    public static class GroupChannel.HeartbeatThread
    extends Thread

    Title: Internal heartbeat thread

    Description: if Channel.getHeartbeat()==true then a thread of this class is created

    Version:
    1.0
    • Field Detail

      • counter

        protected static int counter
      • doRun

        protected volatile boolean doRun
      • sleepTime

        protected final long sleepTime
    • Constructor Detail

      • HeartbeatThread

        public HeartbeatThread​(GroupChannel channel,
                               long sleepTime)
    • Method Detail

      • inc

        protected static int inc()
      • stopHeartbeat

        public void stopHeartbeat()
      • run

        public void run()
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread