public class ControlCarbonMessage extends CarbonMessage
CarbonMessage for control messages. This is used for control messages of a connection.
This message type is useful when you need to send control messages for a given connection.CarbonMessage.ByteBufferInputStream, CarbonMessage.ByteBufferOutputStreamalreadyRead, bufferContent, byteBufferInputStream, faultHandlerStack, headers, lock, messageBody, messageDataSource, messagingException, nelException, properties| Constructor and Description |
|---|
ControlCarbonMessage(ByteBuffer buffer,
boolean finalFragment)
Deprecated.
|
ControlCarbonMessage(String controlSignal) |
ControlCarbonMessage(String controlSignal,
ByteBuffer buffer,
boolean finalFragment)
This constructor is mostly used by the heart beat checks.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getControlSignal()
Retrieve the control signal.
|
boolean |
isFinalFragment()
Retrieve whether this control message include the final fragment of control data.
|
ByteBuffer |
readBytes()
Retrieve the bytes sent or received in controlling.
|
addMessageBody, getCopyOfFullMessageBody, getFaultHandlerStack, getFullMessageBody, getFullMessageLength, getHeader, getHeaders, getInputStream, getLock, getMessageBody, getMessageDataSource, getMessagingException, getNelException, getOutputStream, getProperties, getProperty, getWriter, isAlreadyRead, isBufferContent, isEmpty, isEndOfMsgAdded, isFaulty, markMessageEnd, release, removeHeader, removeProperty, setAlreadyRead, setBufferContent, setEndOfMsgAdded, setFaultHandlerStack, setHeader, setHeaders, setHeaders, setMessageDataSource, setMessagingException, setNelException, setProperty, setWriterpublic ControlCarbonMessage(String controlSignal)
controlSignal - String saying what kind of message signal it is.@Deprecated public ControlCarbonMessage(ByteBuffer buffer, boolean finalFragment)
buffer - byte bufffer of binary data.finalFragment - true if the message is the final fragment of the binary message. First fragment can
also be the final fragment.public ControlCarbonMessage(String controlSignal, ByteBuffer buffer, boolean finalFragment)
controlSignal - String saying what kind of message signal it is.buffer - byte buffer of binary data.finalFragment - true if the message is the final fragment of the binary message. First fragment can
also be the final fragment.public String getControlSignal()
public ByteBuffer readBytes()
public boolean isFinalFragment()
Copyright © 2017 WSO2. All rights reserved.