juglr.net
Interface TCPChannelStrategy
public interface TCPChannelStrategy
Strategy for choosing TCPChannelActor
s from a TCPServerActor
for handling incoming TCP connections. The most common strategies would
use a factory- or pool pattern.
- See Also:
TCPChannelActor
,
TCPServerActor
Method Summary |
TCPChannelActor |
accept(java.nio.channels.SocketChannel channel)
Obtain an actor to handle a TCP connection over a SocketChannel |
accept
TCPChannelActor accept(java.nio.channels.SocketChannel channel)
- Obtain an actor to handle a TCP connection over a
SocketChannel
- Parameters:
channel
- the socket channel the actor must handle
- Returns:
- the actor designated to handle
channel