Class AnimationEventLoopProcessor

java.lang.Object
org.springframework.shell.component.view.event.processor.AnimationEventLoopProcessor
All Implemented Interfaces:
EventLoop.EventLoopProcessor

public class AnimationEventLoopProcessor extends Object implements EventLoop.EventLoopProcessor
EventLoop.EventLoopProcessor converting incoming message into animation tick messages.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canProcess(org.springframework.messaging.Message<?> message)
    Checks if this processor can process an event.
    reactor.core.publisher.Flux<? extends org.springframework.messaging.Message<?>>
    process(org.springframework.messaging.Message<?> message)
    Process a message and transform it into a new Flux of Message instances.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AnimationEventLoopProcessor

      public AnimationEventLoopProcessor()
  • Method Details

    • canProcess

      public boolean canProcess(org.springframework.messaging.Message<?> message)
      Description copied from interface: EventLoop.EventLoopProcessor
      Checks if this processor can process an event. If this method returns true it's quaranteed that EventLoop.EventLoopProcessor.process(Message) is called to resolve translation of a message.
      Specified by:
      canProcess in interface EventLoop.EventLoopProcessor
      Parameters:
      message - the message
      Returns:
      true if processor can process an event
    • process

      public reactor.core.publisher.Flux<? extends org.springframework.messaging.Message<?>> process(org.springframework.messaging.Message<?> message)
      Description copied from interface: EventLoop.EventLoopProcessor
      Process a message and transform it into a new Flux of Message instances.
      Specified by:
      process in interface EventLoop.EventLoopProcessor
      Parameters:
      message - the message to process
      Returns:
      a flux of messages