Package com.biglybt.core.messenger
Class PlatformMessenger
java.lang.Object
com.biglybt.core.messenger.PlatformMessenger
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static boolean
private static PlatformMessenger.fakeContext
private static final boolean
private static AsyncDispatcher
private static boolean
(package private) static Map<String,
Map<PlatformMessage, PlatformMessengerListener>> Key: id of queue; Value: Map of queued messages & listeners(package private) static Map<String,
TimerEvent> private static final int
(package private) static AEMonitor
private static AEMonitor
private static final String
private static final String
static String
static String
static String
private static Timer
private static final String
private static final String
private static boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addExtraParam
(String key, Object value) static void
protected static void
private static Object[]
downloadURL
(URL rpc_url, String postData, boolean forceProxy) private static Object[]
downloadURLSupport
(Proxy proxy, String proxy_host, URL url, String postData) static boolean
static ClientMessageContext
static void
init()
protected static void
processQueue
(String queueID, Map mapQueue) protected static void
processQueueAsync
(String sURL, String sData, Map mapProcessing, boolean forceProxy) static void
pushMessageNow
(PlatformMessage message, PlatformMessengerListener listener) Sends the message almost immediately, skipping delayauthorization checkstatic void
queueMessage
(PlatformMessage message, PlatformMessengerListener listener) static void
queueMessage
(PlatformMessage message, PlatformMessengerListener listener, boolean addToBottom) static void
setAllowMulti
(boolean allowMulti)
-
Field Details
-
DEBUG_URL
private static final boolean DEBUG_URL -
URL_PLATFORM_MESSAGE
- See Also:
-
URL_POST_PLATFORM_DATA
- See Also:
-
MAX_POST_LENGTH
private static final int MAX_POST_LENGTH- See Also:
-
USE_HTTP_POST
private static boolean USE_HTTP_POST -
REPLY_EXCEPTION
-
REPLY_ACTION
-
REPLY_RESULT
-
mapQueues
Key: id of queue; Value: Map of queued messages & listeners -
QUEUE_NOAZID
- See Also:
-
QUEUE_NORMAL
- See Also:
-
queue_mon
-
timerProcess
-
mapTimerEvents
-
mon_mapTimerEvents
-
initialized
private static boolean initialized -
context
-
allowMulti
private static boolean allowMulti -
dispatcher
-
mapExtra
-
-
Constructor Details
-
PlatformMessenger
public PlatformMessenger()
-
-
Method Details
-
init
public static void init() -
getClientMessageContext
-
queueMessage
-
queueMessage
public static void queueMessage(PlatformMessage message, PlatformMessengerListener listener, boolean addToBottom) -
debug
- Parameters:
string
-
-
debug
-
pushMessageNow
Sends the message almost immediately, skipping delayauthorization check- Parameters:
message
-listener
-- Since:
- 3.0.5.3
-
processQueue
-
processQueueAsync
-
downloadURL
private static Object[] downloadURL(URL rpc_url, String postData, boolean forceProxy) throws Throwable - Throws:
Throwable
-
downloadURLSupport
private static Object[] downloadURLSupport(Proxy proxy, String proxy_host, URL url, String postData) throws Throwable - Throws:
Throwable
-
setAllowMulti
public static void setAllowMulti(boolean allowMulti) -
getAllowMulti
public static boolean getAllowMulti() -
addExtraParam
-