|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpeer2me.network.bluetooth.PingQueueProcessor
public class PingQueueProcessor
This class processes the pingqueue that is located in Bluetooth
.
This class constantly watches the queue, and when a pingmessage is added to the queue, this class
tries to establish a connection to the node in the pingmessage. The connection is immediately closed
if it was created.
Constructor Summary | |
---|---|
PingQueueProcessor(Bluetooth bluetooth)
Constructor. |
Method Summary | |
---|---|
boolean |
isProcessQue()
If the queue is being checked at regular intervals, this method returns true |
void |
run()
Runs as long as the private boolean processQueue is true. |
void |
setProcessQue(boolean processQue)
Can be used to stop this thread. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PingQueueProcessor(Bluetooth bluetooth)
bluetooth
- Reference to the Bluetooth classMethod Detail |
---|
public void run()
processQueue
is true.
Checks the pingqueue at regular intervals. When a ping is added to the queue, this
method creates an instance of BluetoothObjectPush and tries to establish a connection to the
assosiated node.
run
in interface java.lang.Runnable
public boolean isProcessQue()
public void setProcessQue(boolean processQue)
processQue
- Use false to stop checking the queue
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |