/** * Check if there was any {@link Throwable} received and if so rethrow it. */ public void checkException() { checkException(voidPromise()); }
/** * Flushes the inbound of this {@link Channel}. This method is conceptually equivalent to {@link #flush()}. * * @see #flushOutbound() */ public EmbeddedChannel flushInbound() { flushInbound(true, voidPromise()); return this; }
/** * Check if there was any {@link Throwable} received and if so rethrow it. */ public void checkException() { checkException(voidPromise()); }
/** * Flushes the inbound of this {@link Channel}. This method is conceptually equivalent to {@link #flush()}. * * @see #flushOutbound() */ public EmbeddedChannel flushInbound() { flushInbound(true, voidPromise()); return this; }
/** * Flushes the inbound of this {@link Channel}. This method is conceptually equivalent to {@link #flush()}. * * @see #flushOutbound() */ public EmbeddedChannel flushInbound() { flushInbound(true, voidPromise()); return this; }
/** * Check if there was any {@link Throwable} received and if so rethrow it. */ public void checkException() { checkException(voidPromise()); }
/** * Flushes the outbound of this {@link Channel}. This method is conceptually equivalent to {@link #flush()}. * * @see #flushInbound() */ public EmbeddedChannel flushOutbound() { if (checkOpen(true)) { flushOutbound0(); } checkException(voidPromise()); return this; }
/** * Flushes the outbound of this {@link Channel}. This method is conceptually equivalent to {@link #flush()}. * * @see #flushInbound() */ public EmbeddedChannel flushOutbound() { if (checkOpen(true)) { flushOutbound0(); } checkException(voidPromise()); return this; }
/** * Flushes the outbound of this {@link Channel}. This method is conceptually equivalent to {@link #flush()}. * * @see #flushInbound() */ public EmbeddedChannel flushOutbound() { if (checkOpen(true)) { flushOutbound0(); } checkException(voidPromise()); return this; }
/** * Write messages to the inbound of this {@link Channel}. * * @param msgs the messages to be written * * @return {@code true} if the write operation did add something to the inbound buffer */ public boolean writeInbound(Object... msgs) { ensureOpen(); if (msgs.length == 0) { return isNotEmpty(inboundMessages); } ChannelPipeline p = pipeline(); for (Object m: msgs) { p.fireChannelRead(m); } flushInbound(false, voidPromise()); return isNotEmpty(inboundMessages); }
/** * Write messages to the inbound of this {@link Channel}. * * @param msgs the messages to be written * * @return {@code true} if the write operation did add something to the inbound buffer */ public boolean writeInbound(Object... msgs) { ensureOpen(); if (msgs.length == 0) { return isNotEmpty(inboundMessages); } ChannelPipeline p = pipeline(); for (Object m: msgs) { p.fireChannelRead(m); } flushInbound(false, voidPromise()); return isNotEmpty(inboundMessages); }
/** * Write messages to the inbound of this {@link Channel}. * * @param msgs the messages to be written * * @return {@code true} if the write operation did add something to the inbound buffer */ public boolean writeInbound(Object... msgs) { ensureOpen(); if (msgs.length == 0) { return isNotEmpty(inboundMessages); } ChannelPipeline p = pipeline(); for (Object m: msgs) { p.fireChannelRead(m); } flushInbound(false, voidPromise()); return isNotEmpty(inboundMessages); }
/** * Flushes the inbound of this {@link Channel}. This method is conceptually equivalent to {@link #flush()}. * * @see #flushOutbound() */ public EmbeddedChannel flushInbound() { flushInbound(true, voidPromise()); return this; }
/** * Check if there was any {@link Throwable} received and if so rethrow it. */ public void checkException() { checkException(voidPromise()); }
/** * Check if there was any {@link Throwable} received and if so rethrow it. */ public void checkException() { checkException(voidPromise()); }
/** * Check if there was any {@link Throwable} received and if so rethrow it. */ public void checkException() { checkException(voidPromise()); }
/** * Flushes the inbound of this {@link Channel}. This method is conceptually equivalent to {@link #flush()}. * * @see #flushOutbound() */ public EmbeddedChannel flushInbound() { flushInbound(true, voidPromise()); return this; }
/** * Flushes the outbound of this {@link Channel}. This method is conceptually equivalent to {@link #flush()}. * * @see #flushInbound() */ public EmbeddedChannel flushOutbound() { if (checkOpen(true)) { flushOutbound0(); } checkException(voidPromise()); return this; }
/** * Flushes the outbound of this {@link Channel}. This method is conceptually equivalent to {@link #flush()}. * * @see #flushInbound() */ public EmbeddedChannel flushOutbound() { if (checkOpen(true)) { flushOutbound0(); } checkException(voidPromise()); return this; }
/** * Flushes the outbound of this {@link Channel}. This method is conceptually equivalent to {@link #flush()}. * * @see #flushInbound() */ public EmbeddedChannel flushOutbound() { if (checkOpen(true)) { flushOutbound0(); } checkException(voidPromise()); return this; }