Example #1
0
 @Override
 public Subscriber<? super IN> apply(Subscriber<? super IN> subscriber) {
   long newId = uniqueId++;
   if ((options & SUBSCRIBE) == SUBSCRIBE && log.isInfoEnabled()) {
     log.trace("subscribe: [{}] {}", newId, subscriber.getClass().getSimpleName());
   }
   return new LoggerBarrier<>(this, newId, subscriber);
 }
Example #2
0
 @Override
 public long getCapacity() {
   return Backpressurable.class.isAssignableFrom(upstream.getClass())
       ? ((Backpressurable) upstream).getCapacity()
       : Long.MAX_VALUE;
 }