Class DirectConnectionsManager
java.lang.Object
org.drasyl.peer.connection.direct.DirectConnectionsManager
- All Implemented Interfaces:
AutoCloseable,DrasylNodeComponent
This class is responsible for establishing and managing direct connections with other drasyl
nodes.
-
Constructor Summary
ConstructorsConstructorDescriptionDirectConnectionsManager(DrasylConfig config, Identity identity, PeersManager peersManager, Pipeline pipeline, PeerChannelGroup channelGroup, io.netty.channel.EventLoopGroup workerGroup, BooleanSupplier acceptNewConnectionsSupplier, Set<Endpoint> endpoints) -
Method Summary
-
Constructor Details
-
DirectConnectionsManager
public DirectConnectionsManager(DrasylConfig config, Identity identity, PeersManager peersManager, Pipeline pipeline, PeerChannelGroup channelGroup, io.netty.channel.EventLoopGroup workerGroup, BooleanSupplier acceptNewConnectionsSupplier, Set<Endpoint> endpoints)
-
-
Method Details
-
open
public void open()Description copied from interface:DrasylNodeComponentStarts the component.- Specified by:
openin interfaceDrasylNodeComponent
-
close
public void close()Description copied from interface:DrasylNodeComponentStops the component.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceDrasylNodeComponent
-