public final class ClientMessageSplitter extends Object
Modifier and Type | Method and Description |
---|---|
static List<ClientMessage> |
getSubFrames(int maxFrameSize,
ClientMessage clientMessage)
Splits a
ClientMessage into frames of a maximum size. |
public static List<ClientMessage> getSubFrames(int maxFrameSize, ClientMessage clientMessage)
ClientMessage
into frames of a maximum size.maxFrameSize
- each split will have max size of maxFrameSize (last split can be smaller than frame size)clientMessage
- main message that will be splitCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.