public class TcpConnectionInitializer extends Object implements ServerFacade, ConnectionInitializer
| Constructor and Description |
|---|
TcpConnectionInitializer(io.netty.channel.EventLoopGroup workerGroup,
boolean isEpollEnabled)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.common.util.concurrent.ListenableFuture<Boolean> |
getIsOnlineFuture() |
void |
initiateConnection(String host,
int port)
Initiates connection towards device.
|
void |
run() |
void |
setChannelInitializer(TcpChannelInitializer channelInitializer) |
void |
setThreadConfig(ThreadConfiguration threadConfig)
Sets thread configuration.
|
com.google.common.util.concurrent.ListenableFuture<Boolean> |
shutdown() |
public TcpConnectionInitializer(io.netty.channel.EventLoopGroup workerGroup,
boolean isEpollEnabled)
workerGroup - - shared worker grouppublic com.google.common.util.concurrent.ListenableFuture<Boolean> shutdown()
shutdown in interface ShutdownProviderpublic com.google.common.util.concurrent.ListenableFuture<Boolean> getIsOnlineFuture()
getIsOnlineFuture in interface OnlineProviderpublic void setThreadConfig(ThreadConfiguration threadConfig)
ServerFacadesetThreadConfig in interface ServerFacadethreadConfig - desired thread configurationpublic void initiateConnection(String host, int port)
ConnectionInitializerinitiateConnection in interface ConnectionInitializerhost - - host IPport - - port numberpublic void setChannelInitializer(TcpChannelInitializer channelInitializer)
Copyright © 2019 OpenDaylight. All rights reserved.