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


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Connection(java.lang.ThreadGroup threadGroup, org.ssonet.net.impl.SSONETServerClientSocket ssonetSocket, org.ssonet.examples.catalog.merchant.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, holdsLock, 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,
                  org.ssonet.net.impl.SSONETServerClientSocket ssonetSocket,
                  org.ssonet.examples.catalog.merchant.MerchantServer merchantServer,
                  java.lang.String merchantName)
creates a connection of a MerchantServer

Method Detail

run

public void run()
read requests from Client

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

stopConnection

public void stopConnection()
Stop the connection



Copyright © 2003 DRIM Team. All Rights Reserved.