Interface QueueCallable<Server extends QueueServer>


public interface QueueCallable<Server extends QueueServer>
Interface for executing some code on a server queue. When processed, the interactWith method is run first, with a queue server as its argument. After the queue server is released, the call method is executed to allow for any necessary processing after the server is done.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    The method to call.
    void
    Interact with a queue server.
  • Method Details

    • interactWith

      void interactWith(Server server)
      Interact with a queue server. This method is called when this object is at the head of a server queue and ready to be processed by a queue server.
      Parameters:
      server - the server handling this QueueCallable
    • call

      void call()
      The method to call. Users will implement this method so that blocks of code can be posted to the event queue.