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:DrasylNodeComponent
Starts the component.- Specified by:
open
in interfaceDrasylNodeComponent
-
close
public void close()Description copied from interface:DrasylNodeComponent
Stops the component.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceDrasylNodeComponent
-