Class OutgoingMulticastIntrospectionRegistry


  • public final class OutgoingMulticastIntrospectionRegistry
    extends Object
    Outgoing (sending) introspection registry. Registry is used to cache introspection interfaces to minimize network traffic. This class is not thread safe (optimized to be used only by one thread). Always serializes with id and full introspection data (used by one-to-many transports).
    Author:
    msekoranja
    • Field Detail

      • registry

        protected final Map<org.epics.pvdata.pv.Field,​Short> registry
      • pointer

        protected short pointer
    • Constructor Detail

      • OutgoingMulticastIntrospectionRegistry

        public OutgoingMulticastIntrospectionRegistry()
    • Method Detail

      • reset

        public void reset()
        Reset registry, i.e. must be done when transport is changed (server restarted).
      • registerIntrospectionInterface

        public short registerIntrospectionInterface​(org.epics.pvdata.pv.Field field)
        Register introspection interface and get it's ID. If it is already registered only preassigned ID is returned.
        Parameters:
        field - field to register.
        Returns:
        id of given Field
      • serialize

        public final void serialize​(org.epics.pvdata.pv.Field field,
                                    ByteBuffer buffer,
                                    org.epics.pvdata.pv.SerializableControl control)