Class PlatformMessenger
java.lang.Object
com.biglybt.core.messenger.PlatformMessenger
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static booleanprivate static PlatformMessenger.fakeContextprivate static final booleanprivate static AsyncDispatcherprivate static boolean(package private) static Map<String, Map<PlatformMessage, PlatformMessengerListener>> Key: id of queue; Value: Map of queued messages invalid input: '&' listeners(package private) static Map<String, TimerEvent> private static final int(package private) static AEMonitorprivate static AEMonitorprivate static final Stringprivate static final Stringstatic Stringstatic Stringstatic Stringprivate static Timerprivate static final Stringprivate static final Stringprivate static boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddExtraParam(String key, Object value) static voidprotected static voidprivate static Object[]downloadURL(URL rpc_url, String postData, boolean forceProxy) private static Object[]downloadURLSupport(Proxy proxy, String proxy_host, URL url, String postData) static booleanstatic ClientMessageContextstatic voidinit()protected static voidprocessQueue(String queueID, Map mapQueue) protected static voidprocessQueueAsync(String sURL, String sData, Map mapProcessing, boolean forceProxy) static voidpushMessageNow(PlatformMessage message, PlatformMessengerListener listener) Sends the message almost immediately, skipping delayauthorization checkstatic voidqueueMessage(PlatformMessage message, PlatformMessengerListener listener) static voidqueueMessage(PlatformMessage message, PlatformMessengerListener listener, boolean addToBottom) static voidsetAllowMulti(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 invalid input: '&' 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
-
downloadURLSupport
-
setAllowMulti
public static void setAllowMulti(boolean allowMulti) -
getAllowMulti
public static boolean getAllowMulti() -
addExtraParam
-