Package com.streambase.liveview.client
Class PubListenerConfig
- java.lang.Object
-
- com.streambase.liveview.client.PubListenerConfig
-
public class PubListenerConfig extends Object
-
-
Constructor Summary
Constructors Constructor Description PubListenerConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
getCallBackTimeInterval()
The utility to return the call back time interval.TimeUnit
getCallBackTimeUnit()
The utility to return the call back interval'sTimeUnit
.boolean
onlyChanges()
Returns the flag that controls the type of events that are sent back on the listener.PubListenerConfig
setCallBackTime(Long timeInterval)
It set the timeInterval in defaultTimeUnit
which is set to MilliSeconds.PubListenerConfig
setCallBackTime(TimeUnit timeUnit, Long timeInterval)
Sets the ack.PubListenerConfig
setOnlyChanges(boolean onlyChanges)
Sets the flag to control the type of events that come back on the listener.
-
-
-
Method Detail
-
setCallBackTime
public PubListenerConfig setCallBackTime(Long timeInterval)
It set the timeInterval in defaultTimeUnit
which is set to MilliSeconds.- Parameters:
timeInterval
-- Returns:
PubListenerConfig
-
setCallBackTime
public PubListenerConfig setCallBackTime(TimeUnit timeUnit, Long timeInterval)
Sets the ack. call back frequency for the current publisher.- Parameters:
timeUnit
-TimeUnit
timeInterval
-- Returns:
-
setOnlyChanges
public PubListenerConfig setOnlyChanges(boolean onlyChanges)
Sets the flag to control the type of events that come back on the listener.- Parameters:
onlyChanges
- the flag controls the type of events that are to be sent back on the listener- Returns:
PubListenerConfig
-
getCallBackTimeInterval
public Long getCallBackTimeInterval()
The utility to return the call back time interval.- Returns:
- the
Long
value representing the time duration for publisher ack. call backs. - Since:
- 10.5.0
-
onlyChanges
public boolean onlyChanges()
Returns the flag that controls the type of events that are sent back on the listener.- Returns:
- the boolean value that controls the type of events on the listener
-
-