|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpeer2me.network.bluetooth.MessageQueueProcessor
public class MessageQueueProcessor
This class processes the messagequeue that is located in Bluetooth
.
This class constantly watches the queue, and when a message is added to the queue, this class
retrieves the message and sends the message through BluetoothObjectPush
Method Summary | |
---|---|
boolean |
isProcessQueue()
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 |
setProcessQueue(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 |
Method Detail |
---|
public void run()
processQueue
is true.
Checks the message queue at regular intervals. When a message appears, this
method creates an instance of BluetoothObjectPush which sends the message
run
in interface java.lang.Runnable
public boolean isProcessQueue()
public void setProcessQueue(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 |