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