94 std::
string * configurationFile_;
#define ONIXS_ICEBOE_NAMESPACE_BEGIN
#define ONIXS_ICEBOE_EMPTY_BODY(...)
#define ONIXS_ICEBOE_NAMESPACE_END
#define ONIXS_ICEBOE_API_DECL(typeKind, typeName)
#define ONIXS_ICEBOE_EXPORTED
Connection-related settings.
SessionScheduler events notifications.
virtual void onWarning(const SessionScheduler &scheduler, Session *session, const std::string &warningReason)
Notifies about a non-critical issue.
virtual void onError(const SessionScheduler &scheduler, Session *session, const std::string &errorReason)
Notifies about an error.
virtual void onLoggingOut(const SessionScheduler &scheduler, Session *session, bool *allowLogout)
Notifies that the session is about to be closed.
SessionSchedulerOptions()
const std::string & configurationFile() const noexcept
~SessionSchedulerOptions()
SessionSchedulerListener * eventListener() const noexcept
SessionScheduler & add(Session *session, const SessionSchedule &schedule, const SessionConnectionSettings &connection)
Adds the session to the automatic connection management.
SessionScheduler & utcTimeUsage(bool value)
Activates the UTC usage.
SessionScheduler & add(BgwSession *session, const SessionScheduleId &scheduleId, IBgwCredentialsProvider *bgwCredentialsProvider)
Adds the session to the automatic connection management.
int reconnectInterval() const
SessionScheduler & add(Session *session, const SessionScheduleId &scheduleId, const SessionConnectionSettingsId &connectionId)
Adds the session to the automatic connection management.
bool utcTimeUsage() const
int reconnectAttempts() const
SessionScheduler(const SessionSchedulerOptions &options)
static const size_t TimeResolutionMs
SessionScheduler & add(BgwSession *session, const SessionSchedule &schedule, IBgwCredentialsProvider *bgwCredentialsProvider)
Adds the session to the automatic connection management.
const SessionConnectionSettings * findConnectionSettings(const SessionConnectionSettingsId &id) const
Looks for the predefined session connection settings associated with the given id that was specified ...
~SessionScheduler()
Performs the graceful shutdown of scheduling sessions.
SessionScheduler & reconnectInterval(int value)
Sets the time interval between the logon attempts in case of a logon failure (in seconds).
SessionScheduler & reconnectAttempts(int value)
Sets the number of logon attempts in case of a logon failure.
const SessionSchedule * findSchedule(const SessionScheduleId &id) const
Looks for the predefined session schedule associated with the given id that was specified in Schedule...
SessionScheduler & remove(Session *session)
Removes the session from the automatic connection management services.
void dispatchEvents()
Processes events on the Scheduler and performs the necessary session management.
std::string SessionScheduleId
std::string SessionConnectionSettingsId
Interface to provide BGW session connection credentials.