amber.client
Class ReceiveThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--amber.client.ReceiveThread
All Implemented Interfaces:
java.lang.Runnable

public class ReceiveThread
extends java.lang.Thread

Thread to deal with the reception of messages destined for one of the applets on the page. Sits on a socket, blocking until bytes are received. Transmission is handled on the same socket by the TransmitThread.

See Also:
ApplicationHandler, ComponentHandler, BaseComponent

Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ReceiveThread(java.net.Socket socket, SocketConnection parent)
          Construct the thread, with it's parent class so it may pass back messages.
 
Method Summary
 void run()
          Primary operating function for the thread.
 void terminate()
          Terminate the thread execution.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReceiveThread

public ReceiveThread(java.net.Socket socket,
                     SocketConnection parent)
              throws java.io.IOException
Construct the thread, with it's parent class so it may pass back messages.
Parameters:
socket - Socket connected to the remote server.
parent - SocketConnection master for this thread.
Throws:
java.io.IOException - with any errors with the socket.
Method Detail

terminate

public void terminate()
Terminate the thread execution.

run

public void run()
Primary operating function for the thread.
Overrides:
run in class java.lang.Thread


Copyright © 2002 Clearfield Research Ltd. All Rights Reserved.