com.google.gwt.core.shared.GWT.getUniqueThreadId()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(161)

本文整理了Java中com.google.gwt.core.shared.GWT.getUniqueThreadId()方法的一些代码示例,展示了GWT.getUniqueThreadId()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GWT.getUniqueThreadId()方法的具体详情如下:
包路径:com.google.gwt.core.shared.GWT
类名称:GWT
方法名:getUniqueThreadId

GWT.getUniqueThreadId介绍

[英]Returns the empty string when running in Production Mode, but returns a unique string for each thread in Development Mode (for example, different windows accessing the dev mode server will each have a unique id, and hitting refresh without restarting dev mode will result in a new unique id for a particular window. TODO(unnurg): Remove this function once Dev Mode rewriting classes are in gwt-dev.
[中]在生产模式下运行时返回空字符串,但是在开发模式下为每个线程返回一个唯一的字符串(例如,访问开发模式服务器的不同窗口都有一个唯一的id,在不重新启动开发模式的情况下点击刷新将为特定窗口生成一个新的唯一id。TODO(unnurg):一旦开发模式重写类在gwt-dev中,请删除此函数。

代码示例

代码示例来源:origin: com.google.gwt/gwt-servlet

/**
 * Returns the empty string when running in Production Mode, but returns a
 * unique string for each thread in Development Mode (for example, different
 * windows accessing the dev mode server will each have a unique id, and
 * hitting refresh without restarting dev mode will result in a new unique id
 * for a particular window.
 *
 * TODO(unnurg): Remove this function once Dev Mode rewriting classes are in
 * gwt-dev.
 */
public static String getUniqueThreadId() {
 return com.google.gwt.core.shared.GWT.getUniqueThreadId();
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
 * Returns the empty string when running in Production Mode, but returns a
 * unique string for each thread in Development Mode (for example, different
 * windows accessing the dev mode server will each have a unique id, and
 * hitting refresh without restarting dev mode will result in a new unique id
 * for a particular window.
 *
 * TODO(unnurg): Remove this function once Dev Mode rewriting classes are in
 * gwt-dev.
 */
public static String getUniqueThreadId() {
 return com.google.gwt.core.shared.GWT.getUniqueThreadId();
}

代码示例来源:origin: net.wetheinter/gwt-user

/**
 * Returns the empty string when running in Production Mode, but returns a
 * unique string for each thread in Development Mode (for example, different
 * windows accessing the dev mode server will each have a unique id, and
 * hitting refresh without restarting dev mode will result in a new unique id
 * for a particular window.
 *
 * TODO(unnurg): Remove this function once Dev Mode rewriting classes are in
 * gwt-dev.
 */
public static String getUniqueThreadId() {
 return com.google.gwt.core.shared.GWT.getUniqueThreadId();
}

代码示例来源:origin: com.google.web.bindery/requestfactory-server

/**
 * Returns the empty string when running in Production Mode, but returns a
 * unique string for each thread in Development Mode (for example, different
 * windows accessing the dev mode server will each have a unique id, and
 * hitting refresh without restarting dev mode will result in a new unique id
 * for a particular window.
 *
 * TODO(unnurg): Remove this function once Dev Mode rewriting classes are in
 * gwt-dev.
 */
public static String getUniqueThreadId() {
 return com.google.gwt.core.shared.GWT.getUniqueThreadId();
}

相关文章