예제 #1
0
 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;
 }
예제 #2
0
 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;
 }
예제 #3
0
 public Sender SetPingBuilderFactory(IPingBuilderFactory pingBuilderFactory)
 {
     PingBuilderFactory = pingBuilderFactory;
     return(this);
 }
예제 #4
0
 public Sender SetPingBuilderFactory(IPingBuilderFactory pingBuilderFactory)
 {
     PingBuilderFactory = pingBuilderFactory;
     return this;
 }