Class WaitHelper.Command

  • Enclosing class:
    WaitHelper

    public abstract static class WaitHelper.Command
    extends Object
    Holder to share result between threads.
    • Constructor Detail

      • Command

        public Command()
    • Method Detail

      • result

        public abstract boolean result()
                                throws Exception
        Invoke method to resolve current result - wait for true.
        Returns:
        true if the event we wait for occurred.
        Throws:
        Exception - any exception is considered as false result