private static class NotifyManage.ReceiveThread
extends android.os.AsyncTask<java.lang.Void,org.json.JSONObject,java.lang.Void>
Modifier and Type | Field and Description |
---|---|
private static int |
BLOCK_RECORD_DELAY |
private long |
mBeforeCalledRecordTime |
private boolean |
mIsStop |
private NotifyManage.Listener |
mListener |
private java.net.Socket |
mSocket |
Modifier | Constructor and Description |
---|---|
private |
ReceiveThread() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Void |
doInBackground(java.lang.Void... voids) |
boolean |
isConnected() |
protected void |
onPostExecute(java.lang.Void aVoid) |
protected void |
onProgressUpdate(org.json.JSONObject... values) |
void |
setListener(NotifyManage.Listener listener) |
void |
stop() |
private static final int BLOCK_RECORD_DELAY
private NotifyManage.Listener mListener
private boolean mIsStop
private java.net.Socket mSocket
private long mBeforeCalledRecordTime
public void setListener(NotifyManage.Listener listener)
public void stop()
public boolean isConnected()
protected java.lang.Void doInBackground(java.lang.Void... voids)
doInBackground
in class android.os.AsyncTask<java.lang.Void,org.json.JSONObject,java.lang.Void>
protected void onProgressUpdate(org.json.JSONObject... values)
onProgressUpdate
in class android.os.AsyncTask<java.lang.Void,org.json.JSONObject,java.lang.Void>
protected void onPostExecute(java.lang.Void aVoid)
onPostExecute
in class android.os.AsyncTask<java.lang.Void,org.json.JSONObject,java.lang.Void>