public final class RTCConfigFactory extends Object implements org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
RTCConfigFactory()
Default constructor.
|
RTCConfigFactory(InputStream stream)
Constructor for RTCConfigFactory.
|
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Load the config from the default config file and create the singleton
instance of this factory.
|
int |
getErrorsBeforeUrlUnsubscribe()
Return the number of times posts are tried with errors before an URL is
automatically unsubscribed.
|
long |
getHighThresholdInterval()
Return the high threshold interval at which data is to be resent.
|
String |
getHighThresholdIntervalStr()
Return the high threshold interval at which data is to be resent.
|
long |
getLowThresholdInterval()
Return the low threshold interval at which data is to be resent.
|
String |
getLowThresholdIntervalStr()
Return the low threshold interval at which data is to be resent.
|
int |
getMaxEventsBeforeResend()
Return the max number of events after which data is to resent.
|
long |
getRollingWindow()
Return the rolling window for which availability is to be computed.
|
String |
getRollingWindowStr()
Return the rolling window for which availability is to be computed.
|
int |
getSenders()
Return the number of sender to be started.
|
int |
getUpdaters()
Return the number of updater threads to be started.
|
long |
getUserRefreshInterval()
Return the user refresh interval at which data is to be resent - this is
the interval at which data is resent when no events are received.
|
String |
getUserRefreshIntervalStr()
Return the user refresh interval at which data is to be resent - this is
the interval at which data is resent when no events are received.
|
public RTCConfigFactory()
public RTCConfigFactory(InputStream stream) throws IOException
Constructor for RTCConfigFactory.
stream
- a InputStream
object.IOException
- if any.public void afterPropertiesSet() throws IOException
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
IOException
- Thrown if the specified config file cannot be read/loadedIOException
- if any.public int getUpdaters()
public int getSenders()
public String getRollingWindowStr()
public long getRollingWindow()
public int getMaxEventsBeforeResend()
public String getLowThresholdIntervalStr()
public long getLowThresholdInterval()
public String getHighThresholdIntervalStr()
public long getHighThresholdInterval()
public String getUserRefreshIntervalStr()
public long getUserRefreshInterval()
public int getErrorsBeforeUrlUnsubscribe()
Copyright © 2021. All rights reserved.