@Override protected synchronized void removeWrite(ChannelHandlerWriteSubscription subscription) { writeUsageCounter--; writeSubscriptions.remove(subscription.getWriteCache()); guardedDisconnect(); }
@Override protected synchronized void addWriter(ChannelHandlerWriteSubscription subscription) { writeUsageCounter++; writeSubscriptions.put(subscription.getWriteCache(), subscription); guardedConnect(); if (connectionPayload != null) { subscription.getConnectionWriteFunction().writeValue(isWriteConnected()); } }
for (ChannelWriteRecipe channelWriteRecipe : writeRecipe.getChannelWriteRecipes()) { ChannelHandler channel = channel(channelWriteRecipe.getChannelName()); planner.addChannel(channel, channelWriteRecipe.getWriteSubscription().getWriteCache().getValue(), channelWriteRecipe.getWriteSubscription().getWriteCache().getPrecedingChannels());