public abstract class ChainedSerializer extends Serializer
Transporter trans = new NatsTransporter("localhost"); MsgPackSerializer msgPack = new MsgPackSerializer(); DeflaterSerializer deflater = new DeflaterSerializer(msgPack); BlockCipherSerializer cipher = new BlockCipherSerializer(deflater); trans.setSerializer(cipher);
Modifier and Type | Field and Description |
---|---|
protected Serializer |
parent |
debug, format, reader, writer
broker, logger, name
Modifier | Constructor and Description |
---|---|
protected |
ChainedSerializer(Serializer parent) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFormat() |
void |
setDebug(boolean debug) |
void |
started(ServiceBroker broker) |
void |
stopped() |
isDebug, read, write
getBroker, getLogger, getName
protected final Serializer parent
protected ChainedSerializer(Serializer parent)
public void started(ServiceBroker broker) throws java.lang.Exception
started
in interface MoleculerLifecycle
started
in class Serializer
java.lang.Exception
public void stopped()
stopped
in interface MoleculerLifecycle
stopped
in class MoleculerComponent
public java.lang.String getFormat()
getFormat
in class Serializer
public void setDebug(boolean debug)
setDebug
in class Serializer