public class ServiceLookupBuilder<C,F> extends Object
Modifier and Type | Field and Description |
---|---|
static long |
GRACE_PERIOD_MS |
static long |
LOOKUP_DELAY_MS |
static long |
WAIT_PERIOD_MS |
Constructor and Description |
---|
ServiceLookupBuilder(ServiceLookup<C,F> serviceProvider) |
Modifier and Type | Method and Description |
---|---|
ServiceLookupBuilder |
blocking() |
ServiceLookupBuilder |
blocking(long gracePeriodInMs,
long sleepTimeInMs,
long waitTimeMs) |
ServiceLookupBuilder |
blocking(long gracePeriodInMs,
long sleepTimeInMs,
long waitTimeMs,
java.util.function.Supplier<Long> upTimeSupplier) |
ServiceLookup<C,F> |
build() |
public static final long GRACE_PERIOD_MS
public static final long WAIT_PERIOD_MS
public static final long LOOKUP_DELAY_MS
public ServiceLookupBuilder(ServiceLookup<C,F> serviceProvider)
public ServiceLookupBuilder blocking()
public ServiceLookupBuilder blocking(long gracePeriodInMs, long sleepTimeInMs, long waitTimeMs)
public ServiceLookupBuilder blocking(long gracePeriodInMs, long sleepTimeInMs, long waitTimeMs, java.util.function.Supplier<Long> upTimeSupplier)
public ServiceLookup<C,F> build()
Copyright © 2020. All rights reserved.