Top Fields Constructors Methods
io.vertx.core.eventbus.impl.clustered

public Class ClusteredMessage<U, V>

extends MessageImpl<U, V>
Class Inheritance
Imports
io.netty.util.CharsetUtil, io.vertx.core.MultiMap, io.vertx.core.buffer.Buffer, io.vertx.core.eventbus.DeliveryOptions, .MessageCodec, .ReplyException, .ReplyFailure, io.vertx.core.eventbus.impl.CodecManager, .EventBusImpl, .MessageImpl, io.vertx.core.impl.logging.Logger, .LoggerFactory, java.util.List, .Map

Author
Tim Fox

Field Summary

Modifier and TypeField and Description
private int
private String
private boolean
private int
private static final Logger
private String
private String
private boolean
private static final byte
private Buffer
wireBuffer

References Deprecated Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Inherited from io.vertx.core.eventbus.impl.MessageImpl:
addressbusheadersmessageCodecreceivedBodyreplyAddresssendsentBodytrace

Constructor Summary

AccessConstructor and Description
public
public
ClusteredMessage(String sender, String address, MultiMap headers, U sentBody, MessageCodec<U, V> messageCodec, boolean send, EventBusImpl bus)

protected

Method Summary

Modifier and TypeMethod and Description
public V
public ClusteredMessage<U, V>
protected MessageImpl<U, V>
private void
private void
private void
encodeHeaders(Buffer buffer)
References Deprecated Buffer is deprecated or references (maybe indirectly) at least one deprecated element.

public Buffer
encodeToWire()
References Deprecated Buffer is deprecated or references (maybe indirectly) at least one deprecated element.

pack-priv String
pack-priv String
pack-priv boolean
public MultiMap
pack-priv void
public boolean
protected boolean
public boolean
public void
readFromWire(Buffer buffer, CodecManager codecManager)
References Deprecated Buffer is deprecated or references (maybe indirectly) at least one deprecated element.

public String
private void
private void
writeBody(Buffer buff)
References Deprecated Buffer is deprecated or references (maybe indirectly) at least one deprecated element.

private void
writeString(Buffer buff, String str)
References Deprecated Buffer is deprecated or references (maybe indirectly) at least one deprecated element.

Inherited from io.vertx.core.eventbus.impl.MessageImpl:
addresscodecisSendreplyreplyAndRequestsetReplyAddress

Field Detail

bodyPosback to summary
private int bodyPos
failureback to summary
private String failure
fromWireback to summary
private boolean fromWire
headersPosback to summary
private int headersPos
logback to summary
private static final Logger log
repliedToback to summary
private String repliedTo
senderback to summary
private String sender
toWireback to summary
private boolean toWire
WIRE_PROTOCOL_VERSIONback to summary
private static final byte WIRE_PROTOCOL_VERSION
wireBufferback to summary
private Buffer wireBuffer

References Deprecated

Buffer is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Constructor Detail

ClusteredMessageback to summary
public ClusteredMessage(EventBusImpl bus)
ClusteredMessageback to summary
public ClusteredMessage(String sender, String address, MultiMap headers, U sentBody, MessageCodec<U, V> messageCodec, boolean send, EventBusImpl bus)
ClusteredMessageback to summary
protected ClusteredMessage(ClusteredMessage<U, V> other)

Method Detail

bodyback to summary
public V body()

Overrides io.vertx.core.eventbus.impl.MessageImpl.body.

Implements io.vertx.core.eventbus.Message.body.

Doc from io.vertx.core.eventbus.Message.body.

The body of the message. Can be null.

Returns:V

the body, or null.

Annotations
@Override
copyBeforeReceiveback to summary
public ClusteredMessage<U, V> copyBeforeReceive()

Overrides io.vertx.core.eventbus.impl.MessageImpl.copyBeforeReceive.

createReplyback to summary
protected MessageImpl<U, V> createReply(Object message, DeliveryOptions options)

Overrides io.vertx.core.eventbus.impl.MessageImpl.createReply.

Annotations
@Override
decodeBodyback to summary
private void decodeBody()
decodeHeadersback to summary
private void decodeHeaders()
encodeHeadersback to summary
private void encodeHeaders(Buffer buffer)

References Deprecated

Buffer is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

encodeToWireback to summary
public Buffer encodeToWire()

References Deprecated

Buffer is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

getRepliedToback to summary
pack-priv String getRepliedTo()
getSenderback to summary
pack-priv String getSender()
hasFailureback to summary
pack-priv boolean hasFailure()
headersback to summary
public MultiMap headers()

Overrides io.vertx.core.eventbus.impl.MessageImpl.headers.

Implements io.vertx.core.eventbus.Message.headers.

Doc from io.vertx.core.eventbus.Message.headers.

Multi-map of message headers. Can be empty

Returns:MultiMap

the headers

Annotations
@Override
internalErrorback to summary
pack-priv void internalError()
isFromWireback to summary
public boolean isFromWire()
isLocalback to summary
protected boolean isLocal()

Overrides io.vertx.core.eventbus.impl.MessageImpl.isLocal.

isToWireback to summary
public boolean isToWire()
readFromWireback to summary
public void readFromWire(Buffer buffer, CodecManager codecManager)

References Deprecated

Buffer is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

replyAddressback to summary
public String replyAddress()

Overrides io.vertx.core.eventbus.impl.MessageImpl.replyAddress.

Implements io.vertx.core.eventbus.Message.replyAddress.

Doc from io.vertx.core.eventbus.Message.replyAddress.

The reply address. Can be null.

Returns:String

the reply address, or null, if message was sent without a reply handler.

Annotations
@Override
setFailureback to summary
private void setFailure(String s)
writeBodyback to summary
private void writeBody(Buffer buff)

References Deprecated

Buffer is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

writeStringback to summary
private void writeString(Buffer buff, String str)

References Deprecated

Buffer is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.