public HeartBeat(long allIdleTimeMillis, IPingBuilderFactory pingBuilderFactory) { if (allIdleTimeMillis <= 0) { TimeToHeartBeatMillis = 0; } else { // TODO check correctness, same in Java? TimeToHeartBeatMillis = Math.Max(allIdleTimeMillis, MinTimeToHeartBeatMillis); } _pingBuilderFactory = pingBuilderFactory; }
public Sender SetPingBuilderFactory(IPingBuilderFactory pingBuilderFactory) { PingBuilderFactory = pingBuilderFactory; return(this); }
public Sender SetPingBuilderFactory(IPingBuilderFactory pingBuilderFactory) { PingBuilderFactory = pingBuilderFactory; return this; }