Package org.drasyl.cli.command.wormhole
Class ReceivingWormholeNode
- java.lang.Object
-
- org.drasyl.DrasylNode
-
- org.drasyl.behaviour.BehavioralDrasylNode
-
- org.drasyl.cli.command.wormhole.ReceivingWormholeNode
-
public class ReceivingWormholeNode extends BehavioralDrasylNode
-
-
Field Summary
Fields Modifier and Type Field Description static Duration
ONLINE_TIMEOUT
static Duration
REQUEST_TEXT_TIMEOUT
-
Constructor Summary
Constructors Constructor Description ReceivingWormholeNode(DrasylConfig config, PrintStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Behavior
created()
CompletableFuture<Void>
doneFuture()
void
requestText(IdentityPublicKey sender, String password)
-
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
-
-
-
-
Constructor Detail
-
ReceivingWormholeNode
public ReceivingWormholeNode(DrasylConfig config, PrintStream out) throws DrasylException
- Throws:
DrasylException
-
-
Method Detail
-
created
protected Behavior created()
- Specified by:
created
in classBehavioralDrasylNode
-
doneFuture
public CompletableFuture<Void> doneFuture()
-
requestText
public void requestText(IdentityPublicKey sender, String password)
- Throws:
NullPointerException
- ifsender
ortext
isnull
-
-