Package zendesk.support.suas
Class CombinedSubscription
- java.lang.Object
-
- zendesk.support.suas.CombinedSubscription
-
- All Implemented Interfaces:
- Subscription
public class CombinedSubscription extends java.lang.Object implements Subscription
Helper class for joining multipleSubscription
s.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
addListener()
Subscribe the associated listener to theStore
static Subscription
from(java.util.Collection<Subscription> subscriptions)
Combine multipleSubscription
s into one.static Subscription
from(Subscription... subscriptions)
Combine multipleSubscription
s into one.void
informWithCurrentState()
void
removeListener()
Unsubscribe the associated listener from theStore
-
-
-
Method Detail
-
from
public static Subscription from(Subscription... subscriptions)
Combine multipleSubscription
s into one.- Parameters:
subscriptions
- a list of subscriptions- Returns:
- a new subscription
-
from
public static Subscription from(java.util.Collection<Subscription> subscriptions)
Combine multipleSubscription
s into one.- Parameters:
subscriptions
- a collection of subscriptions- Returns:
- a new subscription
-
removeListener
public void removeListener()
Description copied from interface:Subscription
Unsubscribe the associated listener from theStore
- Specified by:
removeListener
in interfaceSubscription
-
addListener
public void addListener()
Description copied from interface:Subscription
Subscribe the associated listener to theStore
Can be called after
Subscription.removeListener()
- Specified by:
addListener
in interfaceSubscription
-
informWithCurrentState
public void informWithCurrentState()
Description copied from interface:Subscription
- Specified by:
informWithCurrentState
in interfaceSubscription
-
-