org.ssonet.examples.catalog.merchant
Class Connection

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.ssonet.examples.catalog.merchant.Connection
All Implemented Interfaces:
java.lang.Runnable

public class Connection
extends java.lang.Thread

Connection of a MerchantServer


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Connection(java.lang.ThreadGroup threadGroup, java.net.Socket ssonetSocket, MerchantServer merchantServer, java.lang.String merchantName)
          creates a connection of a MerchantServer
 
Method Summary
 void run()
          read requests from Client
 void stopConnection()
          Stop the connection
 
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

Connection

public Connection(java.lang.ThreadGroup threadGroup,
                  java.net.Socket ssonetSocket,
                  MerchantServer merchantServer,
                  java.lang.String merchantName)
creates a connection of a MerchantServer
Method Detail

run

public void run()
read requests from Client
Overrides:
run in class java.lang.Thread

stopConnection

public void stopConnection()
Stop the connection