public class ServiceExceptionMessageCodec extends Object implements MessageCodec<ServiceException,ServiceException>
| Constructor and Description |
|---|
ServiceExceptionMessageCodec() |
| Modifier and Type | Method and Description |
|---|---|
ServiceException |
decodeFromWire(int pos,
Buffer buffer)
Called by Vert.x when a message is decoded from the wire.
|
void |
encodeToWire(Buffer buffer,
ServiceException body)
Called by Vert.x when marshalling a message to the wire.
|
String |
name()
The codec name.
|
byte |
systemCodecID()
Used to identify system codecs.
|
ServiceException |
transform(ServiceException exception)
If a message is sent locally across the event bus, this method is called to transform the message from
the sent type S to the received type R
|
public void encodeToWire(Buffer buffer, ServiceException body)
MessageCodecencodeToWire in interface MessageCodec<ServiceException,ServiceException>buffer - the message should be written into this bufferbody - the message that is being sentpublic ServiceException decodeFromWire(int pos, Buffer buffer)
MessageCodecdecodeFromWire in interface MessageCodec<ServiceException,ServiceException>pos - the position in the buffer where the message should be read from.buffer - the buffer to read the message frompublic ServiceException transform(ServiceException exception)
MessageCodectransform in interface MessageCodec<ServiceException,ServiceException>exception - the sent messagepublic String name()
MessageCodecname in interface MessageCodec<ServiceException,ServiceException>public byte systemCodecID()
MessageCodecsystemCodecID in interface MessageCodec<ServiceException,ServiceException>Copyright © 2022 Eclipse. All rights reserved.