@Test public void timestamp() { final UserAgent<ChannelHandlerContext> userAgent = new UserAgent<ChannelHandlerContext>(UUIDUtil.newUAID(), mock(ChannelHandlerContext.class), 1368781528407L); final long addedTimeout = userAgent.timestamp() + 10000; final long now = System.currentTimeMillis(); assertThat(addedTimeout < now, is(true)); }
public long timestamp() { return timestamp.get(); }
UserAgent { public long timestamp() { return timestamp.get(); } }
UserAgent { public long timestamp() { return timestamp.get(); } UserAgent(final String uaid, final T transport, final long timestamp); }
UserAgent { public long timestamp() { return timestamp.get(); } UserAgent(final String uaid, final T transport, final long timestamp); String uaid(); T context(); long timestamp(); void timestamp(final long timestamp); @Override String toString(); }
UserAgent { public long timestamp() { return timestamp.get(); } UserAgent(final String uaid, final T transport, final long timestamp); String uaid(); T context(); long timestamp(); void timestamp(final long timestamp); @Override String toString();  }