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.RunnableRecieverThread
-
-
Field Summary
Fields Modifier and Type Field Description protected ServiceAgentiSrvAgent
-
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 voidclose()protected abstract voidinit()protected abstract voidmainLoop()voidrun()voidstart()startvoidstop()stopvoidstop(boolean pWait)stopvoidwait4init()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:
runin interfacejava.lang.Runnable
-
init
protected abstract void init() throws ServiceLocationException, java.io.IOException- Throws:
ServiceLocationExceptionjava.io.IOException
-
mainLoop
protected abstract void mainLoop() throws java.io.IOException- Throws:
java.io.IOException
-
close
protected abstract void close()
-
-