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 LonggetCallBackTimeInterval()The utility to return the call back time interval.TimeUnitgetCallBackTimeUnit()The utility to return the call back interval'sTimeUnit.booleanonlyChanges()Returns the flag that controls the type of events that are sent back on the listener.PubListenerConfigsetCallBackTime(Long timeInterval)It set the timeInterval in defaultTimeUnitwhich is set to MilliSeconds.PubListenerConfigsetCallBackTime(TimeUnit timeUnit, Long timeInterval)Sets the ack.PubListenerConfigsetOnlyChanges(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 defaultTimeUnitwhich 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-TimeUnittimeInterval-- 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
Longvalue 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
-
-