Class RoutingPlan.RegionSlice
java.lang.Object
com.iizix.server.push.engine.RoutingPlan.RegionSlice
- All Implemented Interfaces:
IRoutingPlan.IRegionSlice
- Enclosing class:
RoutingPlan
public static final class RoutingPlan.RegionSlice extends Object implements IRoutingPlan.IRegionSlice
One region's slice.
- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptionintGets the number of subscriptions in this slice bound for a device push (the recipient is offline).Gets the physical dispatch target for this slice — local or remote, reachable or not.intGets the number of subscriptions in this slice bound for in-session delivery (the recipient is live).Gets the region this slice serves.Gets the targets of this slice.
Method Details
getRegion
Description copied from interface:IRoutingPlan.IRegionSliceGets the region this slice serves.- Specified by:
getRegionin interfaceIRoutingPlan.IRegionSlice- Returns:
- The region node; never
null.
getDispatchTarget
Description copied from interface:IRoutingPlan.IRegionSliceGets the physical dispatch target for this slice — local or remote, reachable or not.- Specified by:
getDispatchTargetin interfaceIRoutingPlan.IRegionSlice- Returns:
- The dispatch target; never
null.
getInSessionCount
public int getInSessionCount()Description copied from interface:IRoutingPlan.IRegionSliceGets the number of subscriptions in this slice bound for in-session delivery (the recipient is live).- Specified by:
getInSessionCountin interfaceIRoutingPlan.IRegionSlice- Returns:
- The in-session count.
getDeviceCount
public int getDeviceCount()Description copied from interface:IRoutingPlan.IRegionSliceGets the number of subscriptions in this slice bound for a device push (the recipient is offline).- Specified by:
getDeviceCountin interfaceIRoutingPlan.IRegionSlice- Returns:
- The device-push count.
getTargets
Gets the targets of this slice.- Returns:
- The unmodifiable list of targets.