Package io.ably.lib.liveobjects.path
Class PathObjectSubscriptionOptions
java.lang.Object
io.ably.lib.liveobjects.path.PathObjectSubscriptionOptions
Optional subscription options accepted by
PathObject.subscribe(PathObjectListener, PathObjectSubscriptionOptions).
Spec: RTPO19c
-
Constructor Summary
ConstructorsConstructorDescriptionCreates options with nodepthset: there is no depth limit, and changes at any depth within nested children trigger the listener.PathObjectSubscriptionOptions(int depth) Creates options with the givendepth. -
Method Summary
-
Constructor Details
-
PathObjectSubscriptionOptions
public PathObjectSubscriptionOptions()Creates options with nodepthset: there is no depth limit, and changes at any depth within nested children trigger the listener. Equivalent to passing anulldepth.Spec: RTPO19c1
-
PathObjectSubscriptionOptions
Creates options with the givendepth. For infinite depth, use the no-arg constructorPathObjectSubscriptionOptions()instead.Spec: RTPO19c1, RTPO19c1a
- Parameters:
-
depth- how many levels of path nesting below the subscribed path should trigger the listener; must be a positive integer - Throws:
-
AblyException- withstatusCode400 andcode40003 ifdepthis not a positive integer
-
-
Method Details
-
getDepth
Returns the configured nesting depth, ornullif not set.Spec: RTPO19c1
- Returns:
- the depth value, or
null
-