In storm there are in general two types of bolts, BaseBasicBolt, and
IRichBolt.  Obviously any bolt must implement IBolt and IComponent, but I
would like to create a variable that can contain an instance of either
IRichBolt or BaseBasicBolt and have access to all of the methods in IBolt
and IComponent.  The only way I can think of to do this is to store the
Bolt object in an IBolt variable and then case to IComponent as necessary.
Is there a better way to do this?

Thanks,
Nathan

Reply via email to