Class CountableListener<T>

  • All Implemented Interfaces:
    <,​>

    public class CountableListener<T>
    extends 
    implements <,​>
    Author:
    Nikita Koksharov
    • Field Detail

      • counter

        protected final  counter
      • value

        protected final T value
    • Constructor Detail

      • CountableListener

        public CountableListener()
      • CountableListener

        public CountableListener​(RPromise<T> result,
                                 T value)
      • CountableListener

        public CountableListener​(RPromise<T> result,
                                 T value,
                                 int count)
    • Method Detail

      • setCounter

        public void setCounter​(int newValue)
      • decCounter

        public void decCounter()
      • onSuccess

        protected void onSuccess​(T value)
      • accept

        public void accept​( t,
                            u)
        Specified by:
         in interface <,​>