Class AwsIotObservingSubscriber
- java.lang.Object
-
- com.scaleoutsoftware.digitaltwin.datasource.aws.AwsIotObservingSubscriber
-
- All Implemented Interfaces:
com.scaleout.client.caching.PostedEventHandler<java.lang.String>
,java.io.Serializable
,java.util.Observer
public class AwsIotObservingSubscriber extends java.lang.Object implements com.scaleout.client.caching.PostedEventHandler<java.lang.String>, java.io.Serializable, java.util.Observer
The AwsIotObservingSubscriber handles establishing new connections with AWS IoT core and reposting messages from AWS IoT core to established DigitalTwins.- See Also:
- Serialized Form
-
-
Method Detail
-
update
public void update(java.util.Observable o, java.lang.Object arg)
Called when the SOSS store membership changes and we need to reevaluate our AWS IoT Core connections.- Specified by:
update
in interfacejava.util.Observer
- Parameters:
o
- the observable that called update (MembershipPollingThread)arg
- the HostToPartitionMapping
-
onMessage
public void onMessage(java.lang.String key, com.scaleout.client.caching.EventPayload eventPayload)
- Specified by:
onMessage
in interfacecom.scaleout.client.caching.PostedEventHandler<java.lang.String>
-
-