Package org.zeromq

Interface ZProxy.ZPump.Transformer

All Known Implementing Classes:
ZProxy.ZPump.Identity
Enclosing class:
ZProxy.ZPump

public static interface ZProxy.ZPump.Transformer
  • Method Summary

    Modifier and Type
    Method
    Description
    Transforms a ZMsg into another ZMsg.
  • Method Details

    • transform

      ZMsg transform(ZMsg msg, ZProxy.Plug src, ZProxy.Plug dst)
      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.
      Parameters:
      msg - the message to transform
      src - the source plug
      dst - the destination plug
      Returns:
      the transformed message