public static OneWayMessage decode(ByteBuf buf) { // See comment in encodedLength(). buf.readInt(); return new OneWayMessage(new NettyManagedBuffer(buf.retain())); }
@Override public int hashCode() { return Objects.hashCode(body()); }
return OneWayMessage.decode(in);
return OneWayMessage.decode(in);
public static OneWayMessage decode(ByteBuf buf) { // See comment in encodedLength(). buf.readInt(); return new OneWayMessage(new NettyManagedBuffer(buf.retain())); }
@Override public String toString() { return Objects.toStringHelper(this) .add("body", body()) .toString(); } }
return OneWayMessage.decode(in);
public static OneWayMessage decode(ByteBuf buf) { // See comment in encodedLength(). buf.readInt(); return new OneWayMessage(new NettyManagedBuffer(buf.retain())); }
@Override public void encode(ByteBuf buf) { // See comment in encodedLength(). buf.writeInt((int) body().size()); }
return OneWayMessage.decode(in);
public static OneWayMessage decode(ByteBuf buf) { // See comment in encodedLength(). buf.readInt(); return new OneWayMessage(new NettyManagedBuffer(buf.retain())); }
@Override public void encode(ByteBuf buf) { // See comment in encodedLength(). buf.writeInt((int) body().size()); }
/** * Sends an opaque message to the RpcHandler on the server-side. No reply is expected for the * message, and no delivery guarantees are made. * * @param message The message to send. */ public void send(ByteBuffer message) { channel.writeAndFlush(new OneWayMessage(new NioManagedBuffer(message))); }
@Override public void encode(ByteBuf buf) { // See comment in encodedLength(). buf.writeInt((int) body().size()); }
/** * Sends an opaque message to the RpcHandler on the server-side. No reply is expected for the * message, and no delivery guarantees are made. * * @param message The message to send. */ public void send(ByteBuffer message) { channel.writeAndFlush(new OneWayMessage(new NioManagedBuffer(message))); }
@Override public void encode(ByteBuf buf) { // See comment in encodedLength(). buf.writeInt((int) body().size()); }
/** * Sends an opaque message to the RpcHandler on the server-side. No reply is expected for the * message, and no delivery guarantees are made. * * @param message The message to send. */ public void send(ByteBuffer message) { channel.writeAndFlush(new OneWayMessage(new NioManagedBuffer(message))); }
@Override public int hashCode() { return Objects.hashCode(body()); }
/** * Sends an opaque message to the RpcHandler on the server-side. No reply is expected for the * message, and no delivery guarantees are made. * * @param message The message to send. */ public void send(ByteBuffer message) { channel.writeAndFlush(new OneWayMessage(new NioManagedBuffer(message))); }
@Override public int hashCode() { return Objects.hashCode(body()); }