Package org.drasyl.cli.command.wormhole
Class SendingWormholeNode
- java.lang.Object
-
- org.drasyl.DrasylNode
-
- org.drasyl.behaviour.BehavioralDrasylNode
-
- org.drasyl.cli.command.wormhole.SendingWormholeNode
-
public class SendingWormholeNode extends BehavioralDrasylNode
-
-
Field Summary
Fields Modifier and Type Field Description static Duration
ONLINE_TIMEOUT
static int
PASSWORD_LENGTH
-
Constructor Summary
Constructors Constructor Description SendingWormholeNode(DrasylConfig config, PrintStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Behavior
created()
CompletableFuture<Void>
doneFuture()
void
setText(String text)
-
Methods inherited from class org.drasyl.behaviour.BehavioralDrasylNode
newBehaviorBuilder, onEvent
-
Methods inherited from class org.drasyl.DrasylNode
getVersion, identity, irrevocablyTerminate, pipeline, send, send, shutdown, start
-
-
-
-
Field Detail
-
ONLINE_TIMEOUT
public static final Duration ONLINE_TIMEOUT
-
PASSWORD_LENGTH
public static final int PASSWORD_LENGTH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SendingWormholeNode
public SendingWormholeNode(DrasylConfig config, PrintStream out) throws DrasylException
- Throws:
DrasylException
-
-
Method Detail
-
created
protected Behavior created()
- Specified by:
created
in classBehavioralDrasylNode
-
doneFuture
public CompletableFuture<Void> doneFuture()
-
setText
public void setText(String text)
- Throws:
NullPointerException
- iftext
isnull
-
-