|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--org.kaariboga.io.SendMessageThread
Sends a KaaribogaMessage to another base.
Field Summary | |
(package private) KaaribogaMessage |
message
message to send |
private KbMessageHandler |
messageHandler
Message handler for errors in case the sending fails. |
private java.util.Collection |
sendingThreads
Threads, that are currently sending messages. |
Fields inherited from class java.lang.Thread |
contextClassLoader, daemon, eetop, group, inheritableThreadLocals, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadLocals, threadQ |
Constructor Summary | |
SendMessageThread(KaaribogaMessage msg,
KbMessageHandler handler,
java.util.Collection senders)
Creates a thread that sends a message to another host. |
Method Summary | |
void |
run()
Send the message through a socket connection. |
Methods inherited from class java.lang.Thread |
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
KaaribogaMessage message
private java.util.Collection sendingThreads
private KbMessageHandler messageHandler
Constructor Detail |
public SendMessageThread(KaaribogaMessage msg, KbMessageHandler handler, java.util.Collection senders)
msg
- The message to send.handler
- A KbMessageHandler to handle error messagessenders
- Collection of currently sending threadsMethod Detail |
public void run()
run
in class java.lang.Thread
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |