Package org.zeromq
Class ZProxy.ZPump.Identity
- java.lang.Object
-
- org.zeromq.ZProxy.ZPump.Identity
-
- All Implemented Interfaces:
ZProxy.ZPump.Transformer
- Enclosing class:
- ZProxy.ZPump
private static class ZProxy.ZPump.Identity extends java.lang.Object implements ZProxy.ZPump.Transformer
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Identity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZMsg
transform(ZMsg msg, ZProxy.Plug src, ZProxy.Plug dst)
Transforms a ZMsg into another ZMsg.
-
-
-
Method Detail
-
transform
public ZMsg transform(ZMsg msg, ZProxy.Plug src, ZProxy.Plug dst)
Description copied from interface:ZProxy.ZPump.Transformer
Transforms a ZMsg into another ZMsg. Please note that this will be used during the message transfer, so lengthy operations will have a cost on performances by definition. If you return back another message than the one given in input, then this one has to be destroyed by you.- Specified by:
transform
in interfaceZProxy.ZPump.Transformer
- Parameters:
msg
- the message to transformsrc
- the source plugdst
- the destination plug- Returns:
- the transformed message
-
-