com.web_visage.ichat
Class DefaultServiceThreadGroup

java.lang.Object
  extended by com.web_visage.ichat.DefaultServiceThreadGroup
All Implemented Interfaces:
IChatServiceThreadGroup

public class DefaultServiceThreadGroup
extends java.lang.Object
implements IChatServiceThreadGroup

Default IChat service group.

Author:
K.Baturytski

Constructor Summary
DefaultServiceThreadGroup(IChatServiceBot serviceBot, IChatSender sender, IncomingMessageQueue incomingMessageQueue, OutgoingMessagesQueue outgoingMessageQueue, IChatMessageFactory messageFactory, IChatReader reader, IChatWriter writer, IChatUserList userList)
          Constructor.
 
Method Summary
 void create()
          Creates threads.
 void shutdownAllExceptCurrent()
          Shutdowns all threads except currently running.
 void shutdownAllExceptOutputWriterAndCurrent()
          Shutdowns all threads expect output writer and currently running.
 void shutdownOutputWriter()
          Shutdowns output writer thread.
 void start()
          Starts the threads.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultServiceThreadGroup

public DefaultServiceThreadGroup(IChatServiceBot serviceBot,
                                 IChatSender sender,
                                 IncomingMessageQueue incomingMessageQueue,
                                 OutgoingMessagesQueue outgoingMessageQueue,
                                 IChatMessageFactory messageFactory,
                                 IChatReader reader,
                                 IChatWriter writer,
                                 IChatUserList userList)
Constructor.

Parameters:
serviceBot -
sender -
incomingMessageQueue -
outgoingMessageQueue -
messageFactory -
reader -
writer -
userList -
Method Detail

create

public void create()
Description copied from interface: IChatServiceThreadGroup
Creates threads.

Specified by:
create in interface IChatServiceThreadGroup
See Also:
IChatServiceThreadGroup.create()

start

public void start()
Description copied from interface: IChatServiceThreadGroup
Starts the threads.

Specified by:
start in interface IChatServiceThreadGroup
See Also:
IChatServiceThreadGroup.start()

shutdownAllExceptOutputWriterAndCurrent

public void shutdownAllExceptOutputWriterAndCurrent()
Description copied from interface: IChatServiceThreadGroup
Shutdowns all threads expect output writer and currently running.

Specified by:
shutdownAllExceptOutputWriterAndCurrent in interface IChatServiceThreadGroup
See Also:
IChatServiceThreadGroup.shutdownAllExceptOutputWriterAndCurrent()

shutdownOutputWriter

public void shutdownOutputWriter()
Description copied from interface: IChatServiceThreadGroup
Shutdowns output writer thread.

Specified by:
shutdownOutputWriter in interface IChatServiceThreadGroup
See Also:
IChatServiceThreadGroup.shutdownOutputWriter()

shutdownAllExceptCurrent

public void shutdownAllExceptCurrent()
Description copied from interface: IChatServiceThreadGroup
Shutdowns all threads except currently running.

Specified by:
shutdownAllExceptCurrent in interface IChatServiceThreadGroup
See Also:
IChatServiceThreadGroup.shutdownAllExceptCurrent()