Uses of Class
org.drasyl.node.behaviour.Behavior
Packages that use Behavior
-
Uses of Behavior in org.drasyl.node.behaviour
Subclasses of Behavior in org.drasyl.node.behaviourMethods in org.drasyl.node.behaviour that return BehaviorModifier and TypeMethodDescriptionDeferredBehavior.apply(DrasylNode node) Behavior.BehaviorBuilder.build()Build a behavior from the current state of the builder.protected abstract BehaviorBehavioralDrasylNode.created()Returns the initialBehaviorof the node.static BehaviorBehaviors.ignore()A behavior that ignores every incoming message.Process an incoming event and return the next behavior.static BehaviorBehaviors.same()A behavior that advises the system to reuse the previous behavior.static BehaviorBehaviors.shutdown()A behavior that advises the system to shutdown theDrasylNode.static BehaviorBehaviors.unhandled()A behavior that keeps the same behavior and signals that the event was not handled (event will be logged with DEBUG level).static BehaviorBehaviors.withScheduler(Function<Behaviors.EventScheduler, Behavior> factory) A behavior with support for scheduled self events in a node.static BehaviorBehaviors.withScheduler(Function<Behaviors.EventScheduler, Behavior> factory, io.netty.channel.EventLoopGroup eventLoopGroup) A behavior with support for scheduled self events in a node.Method parameters in org.drasyl.node.behaviour with type arguments of type BehaviorModifier and TypeMethodDescriptionBehavior.BehaviorBuilder.onAnyEvent(Function<Event, Behavior> handler) Adds a new case to the event handling matching any event.Behavior.BehaviorBuilder.onAnyMessage(BiFunction<DrasylAddress, M, Behavior> handler) Add a new case to the event handling matching anyMessageEvent.<M extends Event>
Behavior.BehaviorBuilderAdds a new case to the event handling.<M extends Event>
Behavior.BehaviorBuilderAdds a new predicated case to the event handling.<M extends Event>
Behavior.BehaviorBuilderBehavior.BehaviorBuilder.onEventEquals(M event, Supplier<Behavior> handler) Add a new case to the event handling matching equal events.Behavior.BehaviorBuilder.onMessage(Class<M> messageType, BiFunction<DrasylAddress, M, Behavior> handler) Add a new case to the event handling matching events of typeMessageEventwithMessageEvent.getPayload()matchingmessageType.Behavior.BehaviorBuilder.onMessage(Class<M> messageType, BiPredicate<DrasylAddress, M> test, BiFunction<DrasylAddress, M, Behavior> handler) Add a new predicated case to the event handling matching events of typeMessageEventwithMessageEvent.getPayload()matchingmessageType.Behavior.BehaviorBuilder.onMessageEquals(DrasylAddress sender, M payload, Supplier<Behavior> handler) Add a new case to the event handling matching events of typeMessageEventwith equalMessageEvent.getPayload().static BehaviorBehaviors.withScheduler(Function<Behaviors.EventScheduler, Behavior> factory) A behavior with support for scheduled self events in a node.static BehaviorBehaviors.withScheduler(Function<Behaviors.EventScheduler, Behavior> factory, io.netty.channel.EventLoopGroup eventLoopGroup) A behavior with support for scheduled self events in a node.Constructors in org.drasyl.node.behaviour with parameters of type BehaviorModifierConstructorDescriptionprotectedBehavioralDrasylNode(Identity identity, io.netty.bootstrap.ServerBootstrap bootstrap, io.netty.channel.ChannelFuture channelFuture, io.netty.channel.Channel channel, Behavior behavior) Constructor parameters in org.drasyl.node.behaviour with type arguments of type Behavior