public class ConnectionHandlerFactory extends Object implements IConnectionHandlerFactory
Note that this class implements a service. Hence, is not a part of the public API and is a subject to change.
Constructor and Description |
---|
ConnectionHandlerFactory(IHandshakeFactory handshakeFactory,
TorrentRegistry torrentRegistry,
Collection<HandshakeHandler> handshakeHandlers,
Duration peerHandshakeTimeout) |
Modifier and Type | Method and Description |
---|---|
ConnectionHandler |
getIncomingHandler() |
ConnectionHandler |
getOutgoingHandler(TorrentId torrentId) |
public ConnectionHandlerFactory(IHandshakeFactory handshakeFactory, TorrentRegistry torrentRegistry, Collection<HandshakeHandler> handshakeHandlers, Duration peerHandshakeTimeout)
public ConnectionHandler getIncomingHandler()
getIncomingHandler
in interface IConnectionHandlerFactory
public ConnectionHandler getOutgoingHandler(TorrentId torrentId)
getOutgoingHandler
in interface IConnectionHandlerFactory
Copyright © 2016–2021. All rights reserved.