Package kilim

Class Mailbox.BlockingSubscriber

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private long current  
      boolean eventRcvd  
      private long start  
      private long tom  
    • Constructor Summary

      Constructors 
      Constructor Description
      BlockingSubscriber​(long tom)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean blockingWait()
      wait for either a timeout or event, returning true if the timeout occurred
      void onEvent​(EventPublisher ep, Event e)  
      • Methods inherited from class java.lang.Object

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

      • eventRcvd

        public volatile boolean eventRcvd
      • current

        private long current
      • tom

        private long tom
      • start

        private long start
    • Constructor Detail

      • BlockingSubscriber

        public BlockingSubscriber​(long tom)
    • Method Detail

      • blockingWait

        public boolean blockingWait()
        wait for either a timeout or event, returning true if the timeout occurred