Class ConnectorQueue

  • All Implemented Interfaces:

    
    public final class ConnectorQueue
    
                        

    A Queue to ensure the calls from the same user id are sent sequentially.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      ConnectorQueue(Executor executor)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Unit add(Action action, Long delayInMs, Function1<Action, Unit> send) Adds an action to send to a queue by recipient.
      • Methods inherited from class java.lang.Object

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

      • ConnectorQueue

        ConnectorQueue(Executor executor)
    • Method Detail

      • add

         final Unit add(Action action, Long delayInMs, Function1<Action, Unit> send)

        Adds an action to send to a queue by recipient.

        This method is thread safe.

        Parameters:
        action - the action to send
        delayInMs - the optional delay
        send - the send function