Class OperationNotificationSubscriber
- java.lang.Object
-
- com.cumulocity.sdk.client.devicecontrol.notification.OperationNotificationSubscriber
-
- All Implemented Interfaces:
Subscriber<GId,OperationRepresentation>
public class OperationNotificationSubscriber extends Object implements Subscriber<GId,OperationRepresentation>
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEVICE_CONTROL_NOTIFICATIONS_URL
-
Constructor Summary
Constructors Constructor Description OperationNotificationSubscriber(PlatformParameters parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
disconnect()
Subscription<GId>
subscribe(GId agentId, SubscribeOperationListener subscribeOperationListener, SubscriptionListener<GId,OperationRepresentation> handler, boolean autoRetry)
Subscription<GId>
subscribe(GId agentId, SubscriptionListener<GId,OperationRepresentation> handler)
-
-
-
Field Detail
-
DEVICE_CONTROL_NOTIFICATIONS_URL
public static final String DEVICE_CONTROL_NOTIFICATIONS_URL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OperationNotificationSubscriber
public OperationNotificationSubscriber(PlatformParameters parameters)
-
-
Method Detail
-
subscribe
public Subscription<GId> subscribe(GId agentId, SubscriptionListener<GId,OperationRepresentation> handler) throws SDKException
- Specified by:
subscribe
in interfaceSubscriber<GId,OperationRepresentation>
- Throws:
SDKException
-
subscribe
public Subscription<GId> subscribe(GId agentId, SubscribeOperationListener subscribeOperationListener, SubscriptionListener<GId,OperationRepresentation> handler, boolean autoRetry) throws SDKException
- Specified by:
subscribe
in interfaceSubscriber<GId,OperationRepresentation>
- Throws:
SDKException
-
disconnect
public void disconnect()
- Specified by:
disconnect
in interfaceSubscriber<GId,OperationRepresentation>
-
-