# How do I listen to measurements, events and alarms channels with the Java Client?

**URL:** <https://community.cumulocity.com/t/how-do-i-listen-to-measurements-events-and-alarms-channels-with-the-java-client/908>\
**Category:** Forum\
**Tags:** cumulocity\
**Created:** [May 20, 2020, 7:32am UTC](https://community.cumulocity.com/t/how-do-i-listen-to-measurements-events-and-alarms-channels-with-the-java-client/908 "2020-05-20T07:32:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Tan1](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@Chris\_Tan1](https://community.cumulocity.com/u/Chris_Tan1)\
**Post date:** [May 20, 2020, 7:32am UTC](https://community.cumulocity.com/t/how-do-i-listen-to-measurements-events-and-alarms-channels-with-the-java-client/908/1 "2020-05-20T07:32:23Z")

</div>

I’m trying to use the java client to subscribe to all the real-time notification channels like “measurements/”, “events/”, “alarms”, but I only found 3 classes that implements the Subscriber interface but they do not listen the channels I’m interested in.

> **[Subscriber (Cumulocity SDK - Java Client API)](http://resources.cumulocity.com/documentation/javasdk/current/com/cumulocity/sdk/client/notification/Subscriber.html)**
>
> declaration: package: com.cumulocity.sdk.client.notification, interface: Subscriber

InventoryRealtimeNotificationsSubscriber(deprecated)

```auto
package com.cumulocity.sdk.client.cep.notification;
public class InventoryRealtimeNotificationsSubscriber implements com.cumulocity.sdk.client.notification.Subscriber {
  
  private static final java.lang.String REALTIME_NOTIFICATIONS_URL = "cep/realtime";
  
  private final com.cumulocity.sdk.client.notification.Subscriber<java.lang.String,com.cumulocity.sdk.client.cep.notification.ManagedObjectNotification> subscriber;
  
  private static final java.lang.String channelPrefix = "/managedobjects/";
```

OperationNotificationSubscriber

```auto
package com.cumulocity.sdk.client.devicecontrol.notification;
public class OperationNotificationSubscriber implements com.cumulocity.sdk.client.notification.Subscriber {
  
  public static final java.lang.String DEVICE_CONTROL_NOTIFICATIONS_URL = "devicecontrol/notifications";
  
  private final com.cumulocity.sdk.client.notification.Subscriber<com.cumulocity.model.idtype.GId,com.cumulocity.rest.representation.operation.OperationRepresentation> subscriber;

```

CepCustomNotificationsSubscriber

```auto
package com.cumulocity.sdk.client.cep.notification;
public class CepCustomNotificationsSubscriber implements com.cumulocity.sdk.client.notification.Subscriber {
  
  public static final java.lang.String CEP_CUSTOM_NOTIFICATIONS_URL = "cep/customnotifications";
  
  private final com.cumulocity.sdk.client.notification.Subscriber<java.lang.String,java.lang.Object> subscriber;
```

Where are the other subscriber classes?

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [April 2, 2021, 3:44pm UTC](https://community.cumulocity.com/t/how-do-i-listen-to-measurements-events-and-alarms-channels-with-the-java-client/908/2 "2021-04-02T15:44:42Z")

</div>

Closed on April 2, 2021, 3:44pm UTC


