APISonar


org.rapidoid.util.U.time

> org > rapidoid > util > U > time
org APIs rapidoid APIs util APIs U APIs time APIs

Example 1
public ConnectionTarget(SocketChannel socketChannel, InetSocketAddress addr) {
		this.socketChannel = socketChannel;
		this.addr = addr;
		this.retryAfter = U.time();
	}
Example 2
private void retryConnecting(ConnectionTarget target) throws IOException {
		U.debug("Reconnecting...", "address", target.addr);
		target.socketChannel = SocketChannel.open();
		target.retryAfter = U.time() + 1000;
		connect(target);
	}
Example 3
public ConnectionTarget(SocketChannel socketChannel, InetSocketAddress addr, Protocol protocol,
			ChannelHolderImpl holder, boolean autoreconnecting, ConnState state) {

		U.notNull(protocol, "connection protocol");
		U.notNull(holder, "connection holder");

		this.socketChannel = socketChannel;
		this.addr = addr;
		this.protocol = protocol;
		this.retryAfter = U.time();
		this.holder = holder;
		this.autoreconnecting = autoreconnecting;
		this.state = state;
	}