Package es.situm.sdk.realtime
Class RealTimeRequest.Builder
- java.lang.Object
-
- es.situm.sdk.realtime.RealTimeRequest.Builder
-
- Enclosing class:
- RealTimeRequest
public static final class RealTimeRequest.Builder extends java.lang.Object
Builder to create aRealTimeRequest
instance By default the poll time will be setted to 10 seconds. It can be overrided with the methodpollTimeMs(int)
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(RealTimeRequest copy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RealTimeRequest
build()
RealTimeRequest.Builder
building(Building building)
RealTimeRequest.Builder
pollTimeMs(int pollTimeMs)
The interval in milliseconds to get updates.
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(@NonNull RealTimeRequest copy)
-
-
Method Detail
-
building
@NonNull public RealTimeRequest.Builder building(@NonNull Building building)
- Parameters:
building
-- Returns:
RealTimeRequest.Builder
instance
-
pollTimeMs
@NonNull public RealTimeRequest.Builder pollTimeMs(int pollTimeMs)
The interval in milliseconds to get updates.- Parameters:
pollTimeMs
- in milliseconds, it cannot be less than 3000- Returns:
RealTimeRequest.Builder
instance
-
build
@NonNull public RealTimeRequest build()
- Returns:
- new
RealTimeRequest
instance
-
-