@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); }
@Override public long getCapacity() { return Backpressurable.class.isAssignableFrom(upstream.getClass()) ? ((Backpressurable) upstream).getCapacity() : Long.MAX_VALUE; }