Package convex.peer
Class AThreadedComponent
java.lang.Object
convex.peer.AThreadedComponent
- Direct Known Subclasses:
BeliefPropagator
,ConnectionManager
,CVMExecutor
,QueryHandler
,TransactionHandler
Base class for a threaded execution component that runs within the context of a Peer Server
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
server
-
thread
-
-
Constructor Details
-
AThreadedComponent
-
-
Method Details
-
getLoad
public double getLoad() -
loop
- Throws:
InterruptedException
-
getThreadName
-
start
public void start()Start the threaded component -
close
public void close()Close this threaded component, including interrupting any running thread(s). Subclasses may override, but should call `super.close()` to close the main thread -
finalize
public void finalize()
-