Class DirectConnectionsManager
- java.lang.Object
-
- org.drasyl.peer.connection.direct.DirectConnectionsManager
-
- All Implemented Interfaces:
AutoCloseable
,DrasylNodeComponent
public class DirectConnectionsManager extends Object implements DrasylNodeComponent
This class is responsible for establishing and managing direct connections with other drasyl nodes.
-
-
Constructor Summary
Constructors Constructor Description DirectConnectionsManager(DrasylConfig config, Identity identity, PeersManager peersManager, Pipeline pipeline, PeerChannelGroup channelGroup, io.netty.channel.EventLoopGroup workerGroup, BooleanSupplier acceptNewConnectionsSupplier, Set<Endpoint> endpoints)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Stops the component.void
open()
Starts the component.
-
-
-
Constructor Detail
-
DirectConnectionsManager
public DirectConnectionsManager(DrasylConfig config, Identity identity, PeersManager peersManager, Pipeline pipeline, PeerChannelGroup channelGroup, io.netty.channel.EventLoopGroup workerGroup, BooleanSupplier acceptNewConnectionsSupplier, Set<Endpoint> endpoints)
-
-
Method Detail
-
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
-
-