@ParametersAreNonnullByDefault public final class ProxyClientHandler extends Object implements ClientHandler
Constructor and Description |
---|
ProxyClientHandler(com.google.common.net.HostAndPort fwdDestination,
SnifferFactory c2sSnifferFact,
SnifferFactory s2cSnifferFact,
int proxyBufferSize,
int connectTimeoutMillis)
TCP proxy client handler.
|
Modifier and Type | Method and Description |
---|---|
void |
handle(Selector serverSelector,
SocketChannel clientChannel,
ExecutorService exec,
BlockingQueue<Runnable> tasksToRunBySelector,
UpdateablePriorityQueue<DeadlineAction> deadlineActions) |
String |
toString() |
public ProxyClientHandler(com.google.common.net.HostAndPort fwdDestination, @Nullable SnifferFactory c2sSnifferFact, @Nullable SnifferFactory s2cSnifferFact, int proxyBufferSize, int connectTimeoutMillis)
fwdDestination
- - the destination all connections will be forwarded to.c2sSnifferFact
- - create sniffer to be invoked when data is received from client.s2cSnifferFact
- - create sniffer to be invoked when data is received from server.proxyBufferSize
- - the transmission buffer sizes.connectTimeoutMillis
- - The connection timeout.public void handle(Selector serverSelector, SocketChannel clientChannel, ExecutorService exec, BlockingQueue<Runnable> tasksToRunBySelector, UpdateablePriorityQueue<DeadlineAction> deadlineActions) throws IOException
handle
in interface ClientHandler
IOException
Copyright © 2018 SPF4J. All rights reserved.