public class RemoteInvokerOptions extends AbstractOptions
RemoteInvokerOption
s and their respective values.Modifier and Type | Field and Description |
---|---|
static RemoteInvokerOptions |
DEFAULT
The default
RemoteInvokerOptions . |
valueMap
asMap0, get0, getOrElse0, toString
public static final RemoteInvokerOptions DEFAULT
RemoteInvokerOptions
.public static RemoteInvokerOptions of(RemoteInvokerOptionValue<?>... options)
RemoteInvokerOptions
with the specified RemoteInvokerOptionValue
s.public static RemoteInvokerOptions of(Iterable<RemoteInvokerOptionValue<?>> options)
RemoteInvokerOptions
with the specified RemoteInvokerOptionValue
s.public <T> Optional<T> get(RemoteInvokerOption<T> option)
RemoteInvokerOption
.RemoteInvokerOption
, or
Optional.empty()
if the default value of the specified RemoteInvokerOption
is
not availablepublic <T> T getOrElse(RemoteInvokerOption<T> option, T defaultValue)
RemoteInvokerOption
.RemoteInvokerOption
, or
defaultValue
if the specified RemoteInvokerOption
is not set.public Map<RemoteInvokerOption<Object>,RemoteInvokerOptionValue<Object>> asMap()
RemoteInvokerOptions
to a Map
.public java.time.Duration connectTimeout()
public long connectTimeoutMillis()
public Optional<io.netty.channel.EventLoopGroup> eventLoopGroup()
public Optional<TrustManagerFactory> trustManagerFactory()
public java.time.Duration idleTimeout()
public long idleTimeoutMillis()
public int maxFrameLength()
public int maxConcurrency()
public java.util.function.Function<KeyedChannelPoolHandler<PoolKey>,KeyedChannelPoolHandler<PoolKey>> poolHandlerDecorator()
Copyright © 2015-2016 LINE Corporation. All Rights Reserved.