| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CONNECTION_TIMEOUT_TCP |
static int |
DEFAULT_SLOW_RESPONSE_TIMEOUT_SECONDS |
static int |
DEFAULT_TCP_IDLE_SECONDS |
static int |
DEFAULT_UDP_IDLE_SECONDS |
static String |
THREAD_NAME
The thread name is important to identify threads where blocking (wait) is possible.
|
static int |
UDP_LIMIT |
| Constructor and Description |
|---|
ConnectionBean(int p2pId,
Dispatcher dispatcher,
Sender sender,
ChannelServer channelServer,
Reservation reservation,
ChannelClientConfiguration resourceConfiguration,
ScheduledExecutorService timer)
The connection bean with unmodifiable objects.
|
| Modifier and Type | Method and Description |
|---|---|
ChannelServer |
channelServer() |
Dispatcher |
dispatcher() |
int |
p2pId() |
Reservation |
reservation() |
ChannelClientConfiguration |
resourceConfiguration() |
Sender |
sender() |
ScheduledExecutorService |
timer() |
public static final String THREAD_NAME
public static int DEFAULT_TCP_IDLE_SECONDS
public static int DEFAULT_UDP_IDLE_SECONDS
public static int DEFAULT_CONNECTION_TIMEOUT_TCP
public static int DEFAULT_SLOW_RESPONSE_TIMEOUT_SECONDS
public static int UDP_LIMIT
public ConnectionBean(int p2pId,
Dispatcher dispatcher,
Sender sender,
ChannelServer channelServer,
Reservation reservation,
ChannelClientConfiguration resourceConfiguration,
ScheduledExecutorService timer)
p2pId - The P2P iddispatcher - The dispatcher object that receives all messagessender - The sender object that sends out messageschannelServer - The channel server that listens on incoming connectionsreservation - The connection reservation that is responsible for resource managementresourceConfiguration - The configuration that is responsible for the resource numberstimer - The timer for the discovery processpublic int p2pId()
public Dispatcher dispatcher()
public Sender sender()
public ChannelServer channelServer()
public Reservation reservation()
public ChannelClientConfiguration resourceConfiguration()
public ScheduledExecutorService timer()
Copyright © 2014. All rights reserved.