public static final class ProvidersTypes.SessionInfo.Builder
extends java.lang.Object
ProvidersTypes.SessionInfo
.Constructor and Description |
---|
Builder(ProvidersTypes.SessionInfo.Stage stage,
long completedWork,
long totalWork,
java.util.Calendar startTime)
Constructor with parameters for the required properties of
ProvidersTypes.SessionInfo . |
Modifier and Type | Method and Description |
---|---|
ProvidersTypes.SessionInfo |
build() |
ProvidersTypes.SessionInfo.Builder |
setCompletionTime(java.util.Calendar completionTime)
Time at which forced sync session was completed.
|
ProvidersTypes.SessionInfo.Builder |
setException(LocalizableMessage exception)
Exception message if there is a sync failure on forced sync.
|
public Builder(ProvidersTypes.SessionInfo.Stage stage, long completedWork, long totalWork, java.util.Calendar startTime)
ProvidersTypes.SessionInfo
.public ProvidersTypes.SessionInfo.Builder setCompletionTime(java.util.Calendar completionTime)
null
there is an ongoing sync that has not completedcompletionTime
- New value for the property.public ProvidersTypes.SessionInfo.Builder setException(LocalizableMessage exception)
getStage()
is ProvidersTypes.SessionInfo.Stage.FAILED
.exception
- New value for the property.public ProvidersTypes.SessionInfo build()