public class GridIoMessageFactory extends Object implements MessageFactory
| Constructor and Description |
|---|
GridIoMessageFactory(MessageFormatter formatter,
MessageFactory[] ext) |
| Modifier and Type | Method and Description |
|---|---|
MessageAdapter |
create(byte type)
Creates new message instance of provided type.
|
static void |
registerCustom(byte type,
IgniteOutClosure<MessageAdapter> c)
Registers factory for custom message.
|
public GridIoMessageFactory(MessageFormatter formatter, MessageFactory[] ext)
formatter - Message formatter.ext - Extensions.public MessageAdapter create(byte type)
This method should return null if provided message type
is unknown to this factory.
create in interface MessageFactorytype - Message type.public static void registerCustom(byte type,
IgniteOutClosure<MessageAdapter> c)
type - Message type.c - Message producer.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015