Should the FlowReceiver be closed before recreating a new FlowReceiver?
I am following along with this solace tutorial.I am now testing and handling this portion of the tutorial where I handle REPLAY_START_TIME_NOT_AVAILABLE: .
I have added a System.out.println(consumer.isClosed()); before I recreate a new FlowReceiver to replay from the beginning. This is printing out false.
consumer = session.createFlow(this, consumerFlowProperties, null, replayFlowEventHandler);
Should I close this FlowReceiver before instantiating a new FlowReceiver? I am concerned that leaving a FlowReceiver open throughout the lifecycle of the application could be wasting resources of some sort.