Package org.acemq.amqp.codec.toml
Class TomlCodecProvider
java.lang.Object
org.acemq.amqp.codec.toml.TomlCodecProvider
- All Implemented Interfaces:
CodecProvider
Announces
TomlCodec to the engine as toml.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TomlCodecProvider
public TomlCodecProvider()
-
-
Method Details
-
name
- Specified by:
namein interfaceCodecProvider- Returns:
- the short name this format is asked for by, such as
jsonorxml; lowercase, no spaces
-
create
- Specified by:
createin interfaceCodecProvider- Returns:
- a codec for this format
-
order
public int order()Description copied from interface:CodecProviderWhere this codec sits when several could read the same message.A consumer reads with every codec on the classpath, tried in this order, because a message whose sender set no content type has told us nothing and something usually still reads it. Lower numbers are tried first. Formats that recognise their own bytes belong near the front; a format that accepts anything belongs at the back, or it will answer for messages that were not meant for it.
- Specified by:
orderin interfaceCodecProvider- Returns:
- the sort key;
500is a reasonable default for a new format
-