@Override public AddressedEnvelope<M, A> touch() { ReferenceCountUtil.touch(message); return this; }
@Override public AddressedEnvelope<M, A> touch(Object hint) { ReferenceCountUtil.touch(message, hint); return this; }
final Object touch(Object msg, AbstractChannelHandlerContext next) { return touch ? ReferenceCountUtil.touch(msg, next) : msg; }
@Override public AddressedEnvelope<M, A> touch() { ReferenceCountUtil.touch(message); return this; }
@Override public AddressedEnvelope<M, A> touch(Object hint) { ReferenceCountUtil.touch(message, hint); return this; }
final Object touch(Object msg, AbstractChannelHandlerContext next) { return touch ? ReferenceCountUtil.touch(msg, next) : msg; }
@Override public AddressedEnvelope<M, A> touch() { ReferenceCountUtil.touch(message); return this; }
@Override public ArrayRedisMessage touch(Object hint) { for (RedisMessage msg : children) { ReferenceCountUtil.touch(msg); } return this; }
@Override public AddressedEnvelope<M, A> touch(Object hint) { ReferenceCountUtil.touch(message, hint); return this; }
final Object touch(Object msg, AbstractChannelHandlerContext next) { return touch ? ReferenceCountUtil.touch(msg, next) : msg; }
/** * Return received data from this {@link Channel} */ @SuppressWarnings("unchecked") public <T> T readInbound() { T message = (T) poll(inboundMessages); if (message != null) { ReferenceCountUtil.touch(message, "Caller of readInbound() will handle the message from this point"); } return message; }
/** * Read data from the outbound. This may return {@code null} if nothing is readable. */ @SuppressWarnings("unchecked") public <T> T readOutbound() { T message = (T) poll(outboundMessages); if (message != null) { ReferenceCountUtil.touch(message, "Caller of readOutbound() will handle the message from this point."); } return message; }
/** * Return received data from this {@link Channel} */ @SuppressWarnings("unchecked") public <T> T readInbound() { T message = (T) poll(inboundMessages); if (message != null) { ReferenceCountUtil.touch(message, "Caller of readInbound() will handle the message from this point"); } return message; }
/** * Read data from the outbound. This may return {@code null} if nothing is readable. */ @SuppressWarnings("unchecked") public <T> T readOutbound() { T message = (T) poll(outboundMessages); if (message != null) { ReferenceCountUtil.touch(message, "Caller of readOutbound() will handle the message from this point."); } return message; }
/** * Return received data from this {@link Channel} */ @SuppressWarnings("unchecked") public <T> T readInbound() { T message = (T) poll(inboundMessages); if (message != null) { ReferenceCountUtil.touch(message, "Caller of readInbound() will handle the message from this point"); } return message; }
/** * Read data from the outbound. This may return {@code null} if nothing is readable. */ @SuppressWarnings("unchecked") public <T> T readOutbound() { T message = (T) poll(outboundMessages); if (message != null) { ReferenceCountUtil.touch(message, "Caller of readOutbound() will handle the message from this point."); } return message; }
T prepareObjectForNotification(SubscriptionImpl subscription, T o) { ReferenceCountUtil.touch(o); onRemoval(o); if (!subscription.withPooledObjects()) { o = PooledObjects.toUnpooled(o); } return o; }
@SuppressWarnings("unchecked") T obj = (T) signal; ReferenceCountUtil.touch(obj); try { if (withPooledObjects) {
@Override public FieldBuffersRowData touch(Object hint) { for (ByteBuf fieldBuffer : fieldBuffers) { ReferenceCountUtil.touch(fieldBuffer, hint); } return this; }
@Override public MessageWithHeader touch(Object o) { super.touch(o); header.touch(o); ReferenceCountUtil.touch(body, o); return this; }