Class AwsIotObservingSubscriber
- java.lang.Object
-
- com.scaleoutsoftware.digitaltwin.datasource.aws.AwsIotObservingSubscriber
-
- All Implemented Interfaces:
io.reactivex.Observer<com.scaleoutsoftware.soss.client.Event>
,java.io.Serializable
,java.util.Observer
public class AwsIotObservingSubscriber extends java.lang.Object implements io.reactivex.Observer<com.scaleoutsoftware.soss.client.Event>, 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 Summary
Modifier and Type Method Description void
onComplete()
Called by reactiveX if the subscriber unsubscribesvoid
onError(java.lang.Throwable e)
Called by reactiveX if an error occurs.void
onNext(com.scaleoutsoftware.soss.client.Event event)
Handles each incoming eventvoid
onSubscribe(io.reactivex.disposables.Disposable d)
Handles one-time initialization for this observer.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.
-
-
-
Method Detail
-
onSubscribe
public void onSubscribe(io.reactivex.disposables.Disposable d)
Handles one-time initialization for this observer.- Specified by:
onSubscribe
in interfaceio.reactivex.Observer<com.scaleoutsoftware.soss.client.Event>
- Parameters:
d
- ignored.
-
onNext
public void onNext(com.scaleoutsoftware.soss.client.Event event)
Handles each incoming event- Specified by:
onNext
in interfaceio.reactivex.Observer<com.scaleoutsoftware.soss.client.Event>
- Parameters:
event
- the event to process
-
onError
public void onError(java.lang.Throwable e)
Called by reactiveX if an error occurs.- Specified by:
onError
in interfaceio.reactivex.Observer<com.scaleoutsoftware.soss.client.Event>
- Parameters:
e
- the exception thrown during onNext()
-
onComplete
public void onComplete()
Called by reactiveX if the subscriber unsubscribes- Specified by:
onComplete
in interfaceio.reactivex.Observer<com.scaleoutsoftware.soss.client.Event>
-
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
-
-