Package org.sblim.slp.internal.sa
Class RecieverThread
- java.lang.Object
-
- org.sblim.slp.internal.sa.RecieverThread
-
- All Implemented Interfaces:
java.lang.Runnable
- Direct Known Subclasses:
DatagramThread
,TCPThread
public abstract class RecieverThread extends java.lang.Object implements java.lang.Runnable
RecieverThread
-
-
Field Summary
Fields Modifier and Type Field Description protected ServiceAgent
iSrvAgent
-
Constructor Summary
Constructors Constructor Description RecieverThread(java.lang.String pName, ServiceAgent pSrvAgent)
Ctor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
close()
protected abstract void
init()
protected abstract void
mainLoop()
void
run()
void
start()
startvoid
stop()
stopvoid
stop(boolean pWait)
stopvoid
wait4init()
wait4init
-
-
-
Field Detail
-
iSrvAgent
protected ServiceAgent iSrvAgent
-
-
Constructor Detail
-
RecieverThread
public RecieverThread(java.lang.String pName, ServiceAgent pSrvAgent)
Ctor.- Parameters:
pName
-pSrvAgent
-
-
-
Method Detail
-
start
public void start()
start
-
wait4init
public void wait4init()
wait4init
-
stop
public void stop()
stop
-
stop
public void stop(boolean pWait)
stop- Parameters:
pWait
-
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
init
protected abstract void init() throws ServiceLocationException, java.io.IOException
- Throws:
ServiceLocationException
java.io.IOException
-
mainLoop
protected abstract void mainLoop() throws java.io.IOException
- Throws:
java.io.IOException
-
close
protected abstract void close()
-
-