@Override public FlowSession getCurrentSession() { return delegate.getCurrentSession(); }
protected ClientState createClientState( FlowProcess flowProcess ) { CascadingServices services = flowProcess.getCurrentSession().getCascadingServices(); if( services == null ) return ClientState.NULL; return services.createClientState( getID() ); }
/** * Copy constructor. * <p> * Shares the underlying trap collector collection across copies to avoid a static collection. * * @param flowProcess */ protected FlowProcess( FlowProcess<Config> flowProcess ) { setCurrentSession( flowProcess.getCurrentSession() ); // lazy initialize trap collectors collection and share across copies this.trapCollectors = flowProcess.getTrapCollectors(); this.flowProcessContext = flowProcess.getFlowProcessContext(); }