public class GCTest1 extends SampleBase implements ItemUpdateListener
connection, uri| Constructor and Description |
|---|
GCTest1(java.lang.String uri,
java.lang.String className,
java.lang.String itemName) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect() |
protected void |
finalize() |
static void |
main(java.lang.String[] args) |
void |
notifyDataChange(Variant value,
java.util.Map<java.lang.String,Variant> attributes,
boolean cache)
A change on the data item occurred.
|
void |
notifySubscriptionChange(SubscriptionState state,
java.lang.Throwable subscriptionError)
Notify a change in the subscription change
|
void |
subscribe() |
void |
unsubscribe() |
dispose, sleeppublic GCTest1(java.lang.String uri,
java.lang.String className,
java.lang.String itemName)
throws java.lang.Exception
java.lang.Exceptionpublic void connect()
throws java.lang.Exception
connect in class SampleBasejava.lang.Exceptionpublic void subscribe()
public void unsubscribe()
public void notifyDataChange(Variant value,
java.util.Map<java.lang.String,Variant> attributes,
boolean cache)
ItemUpdateListenernotifyDataChange in interface ItemUpdateListenervalue - The new value, or null if the value did not
changeattributes - The attributes that changed, may be null if no
attribute change at all. The must be unmodifiable by the
receivercache - Indicating that the change came from the cache, this means
that the change was not triggered by a device and that
all attribute where sent, not only the changed onespublic void notifySubscriptionChange(SubscriptionState state, java.lang.Throwable subscriptionError)
ItemUpdateListenernotifySubscriptionChange in interface ItemUpdateListenerstate - the new subscription changesubscriptionError - the new subscription error or null if everything
is okprotected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0