/** * Synchronizes the specified stream from the specified state spout component id with the provided ISubscribedState object. * * The recommended usage of this method is as follows: * * ```java _myState = context.setSubscribedState(componentId, streamId, new MyState()); ``` * * @param componentId the id of the StateSpout component to subscribe to * @param streamId the stream to subscribe to * @param obj Provided ISubscribedState implementation * @return Returns the ISubscribedState object provided */ public <T extends ISubscribedState> T setSubscribedState(String componentId, String streamId, T obj) { throw new NotImplementedException(); }
/** * All state from all subscribed state spouts streams will be synced with the provided object. * * It is recommended that your ISubscribedState object is kept as an instance variable of this object. The recommended usage of this * method is as follows: * * ```java _myState = context.setAllSubscribedState(new MyState()); ``` * * @param obj Provided ISubscribedState implementation * @return Returns the ISubscribedState object provided */ public <T extends ISubscribedState> T setAllSubscribedState(T obj) { //check that only subscribed to one component/stream for statespout //setsubscribedstate appropriately throw new NotImplementedException(); }
/** * Synchronizes the specified stream from the specified state spout component * id with the provided ISubscribedState object. * * The recommended usage of this method is as follows: * * ```java * _myState = context.setSubscribedState(componentId, streamId, new MyState()); * ``` * * @param componentId the id of the StateSpout component to subscribe to * @param streamId the stream to subscribe to * @param obj Provided ISubscribedState implementation * @return Returns the ISubscribedState object provided */ public <T extends ISubscribedState> T setSubscribedState(String componentId, String streamId, T obj) { throw new NotImplementedException(); }
/** * All state from all subscribed state spouts streams will be synced with * the provided object. * * It is recommended that your ISubscribedState object is kept as an instance * variable of this object. The recommended usage of this method is as follows: * * ```java * _myState = context.setAllSubscribedState(new MyState()); * ``` * * @param obj Provided ISubscribedState implementation * @return Returns the ISubscribedState object provided */ public <T extends ISubscribedState> T setAllSubscribedState(T obj) { //check that only subscribed to one component/stream for statespout //setsubscribedstate appropriately throw new NotImplementedException(); }