The OnixS::FIX::SBE::ISbeCustomCoderLibrary has two methods that allows to track using of the library by SBE coders. These methods are: OnixS::FIX::SBE::ISbeCustomCoderLibrary::attach and OnixS::FIX::SBE::ISbeCustomCoderLibrary::detach.
Both of these methods use the similar ownerId parameter that denotes owner for custom coders and source of other requests.
It is guaranteed that following contract supported by the SBE coders:
- The OnixS::FIX::SBE::ISbeCustomCoderLibrary::attach is always called first, before all other calls to the library;
- The SBE coder always use exactly the same owner value to identify its calls;
- The owner value always unique among all SBE coder objects: particular owner always belonged to the single SBE coder;
- The OnixS::FIX::SBE::ISbeCustomCoderLibrary::detach methods always called last for the given owner. The call is performed during destruction of the SBE coder or after failed construction. In simpler words, the attach callback is always paired by the detach callback.
- No callbacks will be issued with the owner value that has been used by the detach method.