Package org.drasyl.example.qotm
Class QuoteOfTheMomentClient
- java.lang.Object
-
- org.drasyl.DrasylNode
-
- org.drasyl.example.qotm.QuoteOfTheMomentClient
-
public class QuoteOfTheMomentClient extends DrasylNode
-
-
Constructor Summary
Constructors Constructor Description QuoteOfTheMomentClient()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
void
onEvent(Event event)
CompletableFuture<Void>
online()
-
Methods inherited from class org.drasyl.DrasylNode
getBestEventLoop, getVersion, identity, irrevocablyTerminate, pipeline, send, send, shutdown, start
-
-
-
-
Constructor Detail
-
QuoteOfTheMomentClient
public QuoteOfTheMomentClient() throws DrasylException
- Throws:
DrasylException
-
-
Method Detail
-
onEvent
public void onEvent(@NonNull Event event)
- Specified by:
onEvent
in classDrasylNode
-
online
public CompletableFuture<Void> online()
-
main
public static void main(String[] args) throws DrasylException
- Throws:
DrasylException
-
-