public class DefaultSessionSchedule extends Object implements SessionSchedule
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
DefaultSessionSchedule(SessionSettings settings,
SessionID sessionID) |
Modifier and Type | Method and Description |
---|---|
boolean |
isNonStopSession() |
boolean |
isSameSession(Calendar time1,
Calendar time2)
Predicate for determining if the two times are in the same session
|
boolean |
isSessionTime()
Predicate for determining if the session should be active at the current time.
|
String |
toString() |
public DefaultSessionSchedule(SessionSettings settings, SessionID sessionID) throws ConfigError, FieldConvertError
ConfigError
FieldConvertError
public boolean isSameSession(Calendar time1, Calendar time2)
SessionSchedule
isSameSession
in interface SessionSchedule
time1
- test time 1time2
- test time 2public boolean isNonStopSession()
isNonStopSession
in interface SessionSchedule
public boolean isSessionTime()
SessionSchedule
isSessionTime
in interface SessionSchedule
Copyright © 2021. All rights reserved.