📄 rcvtimestamp.java
字号:
/*------------------------------------------------------------------------------Name: RcvTimestamp.javaProject: xmlBlaster.orgCopyright: xmlBlaster.org, see xmlBlaster-LICENSE fileComment: Create unique timestamp for incoming messageVersion: $Id: RcvTimestamp.java 12937 2004-11-24 20:15:11Z ruff $Author: xmlBlaster@marcelruff.info------------------------------------------------------------------------------*/package org.xmlBlaster.util;/** * Timestamp for received messages, time elapsed since 1970, the nanos are simulated * as a unique counter. * <pre> * <rcvTimestamp nanos='1013346248150000001'> * 2002-02-10 14:04:08.150000001 * </rcvTimestamp> * </pre> * or * <pre> * <rcvTimestamp nanos='1013346248150000001'/> * </pre> * @see org.xmlBlaster.util.Timestamp * @author <a href="mailto:xmlBlaster@marcelruff.info">Marcel Ruff</a> */public class RcvTimestamp extends Timestamp implements java.io.Serializable{ /** * Constructs a current timestamp which is guaranteed to be unique in time for this JVM * @exception RuntimeException on overflow (never happens :-=) */ public RcvTimestamp() { tagName = "rcvTimestamp"; } /** * Create a Timestamp with given nanoseconds since 1970 */ public RcvTimestamp(long nanos) { super(nanos); tagName = "rcvTimestamp"; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -