Java Duration Calculate adjustServerTimeout(Duration clientTimeout)

Here you can find the source of adjustServerTimeout(Duration clientTimeout)

Description

adjust Server Timeout

License

Open Source License

Declaration

static Duration adjustServerTimeout(Duration clientTimeout) 

Method Source Code

//package com.java2s;
/*// w w  w .  j  a v a 2s. co m
 * Copyright (c) Microsoft. All rights reserved.
 * Licensed under the MIT license. See LICENSE file in the project root for full license information.
 */

import java.time.Duration;

public class Main {
    static Duration adjustServerTimeout(Duration clientTimeout) {
        return clientTimeout.minusMillis(100);
    }
}

Related

  1. awaitTermination(ExecutorService service, Logger logger, Duration timeout, String technique)
  2. calculateDuration(Duration minimum, Duration maximum, Long iteration)
  3. daysRoundingUp(Duration duration)
  4. delayedFuture(Duration delay, ScheduledExecutorService executorService)