com.web_visage.ircha.services
Class VirtualUsersRefreshThread

java.lang.Object
  extended by com.web_visage.ircha.services.VirtualUsersRefreshThread
All Implemented Interfaces:
java.lang.Runnable

public class VirtualUsersRefreshThread
extends java.lang.Object
implements java.lang.Runnable

Thread class for keeping our virtual users alive.

Sends refresh message every minute to keep the virtual users alive.

Author:
K.Baturytski

Constructor Summary
VirtualUsersRefreshThread(IChatUserList aVirtualUsers, IChatServiceBot aServiceBot, java.lang.String aVirtLine)
          Constructor.
 
Method Summary
 void interrupt()
          Interrupts the tread.
 void run()
           
 void start()
          Starts the thread.
 void stop()
          Stops the thread nicely.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VirtualUsersRefreshThread

public VirtualUsersRefreshThread(IChatUserList aVirtualUsers,
                                 IChatServiceBot aServiceBot,
                                 java.lang.String aVirtLine)
Constructor.

Parameters:
aVirtualUsers -
aServiceBot -
aVirtLine -
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
See Also:
Runnable.run()

start

public void start()
Starts the thread.


stop

public void stop()
Stops the thread nicely.


interrupt

public void interrupt()
Interrupts the tread.