Class SessionTimerOptions.Builder
- java.lang.Object
-
- com.opencloud.javax.sip.sessiontimer.SessionTimerOptions.Builder
-
- Enclosing class:
- SessionTimerOptions
public static class SessionTimerOptions.Builder extends Object
BuildsSessionTimerOptions
values. The session interval value is mandatory, but callers may also specify optional Min-SE and refresher values. Create a newSessionTimerOptions.Builder
usingSessionTimerOptions.builder(int)
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SessionTimerOptions
build()
Builds a newSessionTimerOptions
value using the values passed to this builderSessionTimerOptions.Builder
minSE(int minSE)
Adds a Min-SE value that will be used in the finalSessionTimerOptions
valueSessionTimerOptions.Builder
refresher(Refresher refresher)
Adds aRefresher
value that will be used in the finalSessionTimerOptions
value
-
-
-
Method Detail
-
minSE
public SessionTimerOptions.Builder minSE(int minSE)
Adds a Min-SE value that will be used in the finalSessionTimerOptions
value- Parameters:
minSE
- the Min-SE value- Returns:
- this builder
-
refresher
public SessionTimerOptions.Builder refresher(Refresher refresher)
Adds aRefresher
value that will be used in the finalSessionTimerOptions
value- Parameters:
refresher
- the refresher value- Returns:
- this builder
-
build
public SessionTimerOptions build()
Builds a newSessionTimerOptions
value using the values passed to this builder- Returns:
- a
SessionTimerOptions
value - Throws:
IllegalArgumentException
- if any parameters were not valid:- the session interval value must be at least 90s;
- the Min-SE value must be at least 90s;
- the session interval must not be less than Min-SE.
-
-