isMessageSizeExceeded method

bool isMessageSizeExceeded(
  1. MigratoryDataMessage message
)

Checks whether the size of the given message exceeds the configured maximum message size.

The maximum message size is defined by the MaxMessageSize parameter in the MigratoryData server configuration. If MaxMessageSize is not explicitly set, the default value is 65536 bytes (64 KB).

\param message The MigratoryDataMessage instance to check. \return true if the message size exceeds the configured maximum message size, false if it is within the configured maximum message size.

Implementation

bool isMessageSizeExceeded(MigratoryDataMessage message) {
  return !clientImpl.checkMessageSizeLimit(message);
}