Package moe.kyokobot.koe.internal
Class KoeOptionsImpl
java.lang.Object
moe.kyokobot.koe.internal.KoeOptionsImpl
- All Implemented Interfaces:
KoeOptionsExperimental,KoeOptions
KoeOptions is a class that holds various options for configuring the Koe client.
-
Constructor Summary
ConstructorsConstructorDescriptionKoeOptionsImpl(@NotNull io.netty.channel.EventLoopGroup eventLoopGroup, @NotNull Class<? extends io.netty.channel.socket.SocketChannel> socketChannelClass, @NotNull Class<? extends io.netty.channel.socket.DatagramChannel> datagramChannelClass, @NotNull io.netty.buffer.ByteBufAllocator byteBufAllocator, @NotNull GatewayVersion gatewayVersion, @NotNull FramePollerFactory framePollerFactory, @NotNull CodecRegistry codecRegistry, boolean experimental, boolean highPacketPriority, boolean deafened, boolean enableWSSPortOverride, boolean verifyWSSHostname, long gatewayConnectTimeout, boolean sendSpeakingStop, boolean enableDAVE, boolean enableDAVELogSink, @NotNull CipherPreferencePolicy cipherPreferencePolicy, @NotNull DaveFactoryProvider daveFactoryProvider) -
Method Summary
Modifier and TypeMethodDescription@NotNull io.netty.buffer.ByteBufAllocator@NotNull CipherPreferencePolicy@NotNull CodecRegistry@NotNull Class<? extends io.netty.channel.socket.DatagramChannel>@NotNull DaveFactoryProvider@NotNull io.netty.channel.EventLoopGroup@NotNull FramePollerFactorylong@NotNull GatewayVersion@NotNull Class<? extends io.netty.channel.socket.SocketChannel>booleanbooleanbooleanbooleanbooleanbooleanbooleanboolean
-
Constructor Details
-
KoeOptionsImpl
public KoeOptionsImpl(@NotNull @NotNull io.netty.channel.EventLoopGroup eventLoopGroup, @NotNull @NotNull Class<? extends io.netty.channel.socket.SocketChannel> socketChannelClass, @NotNull @NotNull Class<? extends io.netty.channel.socket.DatagramChannel> datagramChannelClass, @NotNull @NotNull io.netty.buffer.ByteBufAllocator byteBufAllocator, @NotNull @NotNull GatewayVersion gatewayVersion, @NotNull @NotNull FramePollerFactory framePollerFactory, @NotNull @NotNull CodecRegistry codecRegistry, boolean experimental, boolean highPacketPriority, boolean deafened, boolean enableWSSPortOverride, boolean verifyWSSHostname, long gatewayConnectTimeout, boolean sendSpeakingStop, boolean enableDAVE, boolean enableDAVELogSink, @NotNull @NotNull CipherPreferencePolicy cipherPreferencePolicy, @NotNull @NotNull DaveFactoryProvider daveFactoryProvider)
-
-
Method Details
-
getEventLoopGroup
@NotNull public @NotNull io.netty.channel.EventLoopGroup getEventLoopGroup()- Specified by:
getEventLoopGroupin interfaceKoeOptions
-
getSocketChannelClass
@NotNull public @NotNull Class<? extends io.netty.channel.socket.SocketChannel> getSocketChannelClass()- Specified by:
getSocketChannelClassin interfaceKoeOptions
-
getDatagramChannelClass
@NotNull public @NotNull Class<? extends io.netty.channel.socket.DatagramChannel> getDatagramChannelClass()- Specified by:
getDatagramChannelClassin interfaceKoeOptions
-
getByteBufAllocator
@NotNull public @NotNull io.netty.buffer.ByteBufAllocator getByteBufAllocator()- Specified by:
getByteBufAllocatorin interfaceKoeOptions
-
getGatewayVersion
- Specified by:
getGatewayVersionin interfaceKoeOptions
-
getFramePollerFactory
- Specified by:
getFramePollerFactoryin interfaceKoeOptions
-
getCodecRegistry
- Specified by:
getCodecRegistryin interfaceKoeOptions
-
isExperimental
public boolean isExperimental()- Specified by:
isExperimentalin interfaceKoeOptions
-
isHighPacketPriority
public boolean isHighPacketPriority()- Specified by:
isHighPacketPriorityin interfaceKoeOptions
-
isDeafened
public boolean isDeafened()- Specified by:
isDeafenedin interfaceKoeOptions
-
isEnableWSSPortOverride
public boolean isEnableWSSPortOverride()- Specified by:
isEnableWSSPortOverridein interfaceKoeOptions
-
isVerifyWSSHostname
public boolean isVerifyWSSHostname()- Specified by:
isVerifyWSSHostnamein interfaceKoeOptions
-
getGatewayConnectTimeout
public long getGatewayConnectTimeout()- Specified by:
getGatewayConnectTimeoutin interfaceKoeOptions
-
isSendSpeakingStop
public boolean isSendSpeakingStop()- Specified by:
isSendSpeakingStopin interfaceKoeOptions
-
isEnableDAVE
public boolean isEnableDAVE()- Specified by:
isEnableDAVEin interfaceKoeOptions
-
isEnableDAVELogSink
public boolean isEnableDAVELogSink()- Specified by:
isEnableDAVELogSinkin interfaceKoeOptions
-
getCipherPreferencePolicy
- Specified by:
getCipherPreferencePolicyin interfaceKoeOptionsExperimental- Returns:
- the policy which picks the transport encryption mode of voice sessions
-
getDaveFactoryProvider
- Specified by:
getDaveFactoryProviderin interfaceKoeOptionsExperimental- Returns:
- a custom
NettyDaveFactoryprovider function, or null if not set.
-