2.6.65
/**
* Returns <tt>true</tt> if specified <tt>time</tt> is within the limits of offline (weekend) period.
* @param time time in milliseconds
* @return <tt>true</tt> if specified <tt>time</tt> is within the limits of offline (weekend) period, <tt>false</tt> - otherwise
*/
boolean isOfflineTime(long time);
/**
* Returns either present, current offline (weekend) {@link ITimeDomain time interval} or the next <b>approximate</b> upcoming one.<br/>
* The same as {@link #getOfflineTimeDomain(shift)} with shift == 0
* @return either present, current offline (weekend) {@link ITimeDomain time interval} or the next <b>approximate</b> upcoming one.
* @throws JFException when some error occurs
* @see #getOfflineTimeDomain(int)
*
*/
ITimeDomain getOfflineTimeDomain() throws JFException;
/**
* Returns offline (weekend) {@link ITimeDomain time interval} that is shifted back or forward for number of offline intervals specified in <code>shift</code> parameter.
* @param shift number of offline intervals back or forward in time staring from current one. E.g.:
* <ul>
* <li><b>0</b> - current or next <b>approximate</b> offline period,
* <li><b>-1</b> - previous offline (last finished one),
* <li><b>1</b> - next <b>approximate</b> after current one, etc.
* </ul>
* @return offline (weekend) {@link ITimeDomain time interval} that is shifted back or forward for number of offline intervals specified in <code>shift</code> parameter
* @throws JFException when some error occurs
*/
ITimeDomain getOfflineTimeDomain(int shift) throws JFException;
/**
* Returns the set of offline (weekend) {@link ITimeDomain time intervals} ascending ordered by time which are within the limits of <tt>from</tt> and <tt>to</tt> parameters.
* @param from start of the time interval for which offline periods should be loaded. If <tt>start</tt> time is within the limits of offline period - this period will be returned as first element of resulting set.
* @param to end of the time interval for which offline periods should be loaded. If <tt>end</tt> time is within the limits of offline period - this period will be returned as last element of resulting set.
* @return the set of offline (weekend) {@link ITimeDomain time intervals} ascending ordered by time which are within the limits of <tt>from</tt> and <tt>to</tt> parameters.
* @throws JFException when some error occurs
*/
Set<ITimeDomain> getOfflineTimeDomains(long from, long to) throws JFException;