Package org.epics.pvaccess.client.pvms
Class OutgoingMulticastIntrospectionRegistry
- java.lang.Object
-
- org.epics.pvaccess.client.pvms.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
-
-
Constructor Summary
Constructors Constructor Description OutgoingMulticastIntrospectionRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description short
registerIntrospectionInterface(org.epics.pvdata.pv.Field field)
Register introspection interface and get it's ID.void
reset()
Reset registry, i.e.void
serialize(org.epics.pvdata.pv.Field field, ByteBuffer buffer, org.epics.pvdata.pv.SerializableControl control)
-
-
-
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)
-
-