io.relayr.java.websocket.WebSocketClient.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
Java SDK for connecting to the Relayr Cloud
The newest version!
???? 3?
g ? g ? g ?
g ?
h ? ?
? g ? g ? g ? g ? g ? g ?
? ?
? ?
?
g ? ? ?
g ? ? ? ?
, ? ? ? ? ? ?
? ? ? ?
?
?
? ?
?
!
$
,
0
0 ?
)
, ?
?
0
4
g
7
g
; ?
;
;
@ ?
@
!"
4#
4$
g%&'
I(
4)*+
g,-.
Q/0
S1 ?2 34
56
Z ?7
\8
^
9:
a
;
< ?=
>?@ InnerClasses
channelApi Lio/relayr/java/api/ChannelApi; webSocket $Lio/relayr/java/websocket/WebSocket; Signature PLio/relayr/java/websocket/WebSocket; subChannels Ljava/util/Map; MLjava/util/Map; subObservers fLjava/util/Map;>; pubChannels pubObservers RLjava/util/Map;>; channelCreation jLjava/util/Map;>; actionObservers 8Ljava/util/Map; M(Lio/relayr/java/api/ChannelApi;Lio/relayr/java/websocket/WebSocketFactory;)V Code LineNumberTable LocalVariableTable this *Lio/relayr/java/websocket/WebSocketClient; api factory +Lio/relayr/java/websocket/WebSocketFactory; RuntimeVisibleAnnotations Ljavax/inject/Inject; subscribe .(Lio/relayr/java/model/Device;)Lrx/Observable; device Lio/relayr/java/model/Device;
StackMapTable U(Lio/relayr/java/model/Device;)Lrx/Observable; #(Ljava/lang/String;)Lrx/Observable; deviceId Ljava/lang/String; J(Ljava/lang/String;)Lrx/Observable; createSubObserver subject Lrx/subjects/PublishSubject; LocalVariableTypeTable CLrx/subjects/PublishSubject; subscribeToChannel [(Lio/relayr/java/model/channel/DataChannel;Ljava/lang/String;Lrx/subjects/PublishSubject;)V channel *Lio/relayr/java/model/channel/DataChannel; ?(Lio/relayr/java/model/channel/DataChannel;Ljava/lang/String;Lrx/subjects/PublishSubject;)V unSubscribe (Ljava/lang/String;)V publish H(Ljava/lang/String;Lio/relayr/java/model/action/Reading;)Lrx/Observable; Lrx/subjects/AsyncSubject; payload %Lio/relayr/java/model/action/Reading; publishSubject /Lrx/subjects/AsyncSubject; ](Ljava/lang/String;Lio/relayr/java/model/action/Reading;)Lrx/Observable; publishData T(Ljava/lang/String;Lio/relayr/java/model/action/Reading;Lrx/subjects/AsyncSubject;)V success Z e .Lorg/eclipse/paho/client/mqttv3/MqttException; ae Ljava/lang/Exception;$& i(Ljava/lang/String;Lio/relayr/java/model/action/Reading;Lrx/subjects/AsyncSubject;)V subscribeToCommands CLrx/subjects/PublishSubject; J(Ljava/lang/String;)Lrx/Observable; subscribeToConfigurations ILrx/subjects/PublishSubject; P(Ljava/lang/String;)Lrx/Observable; createActionObserver P(Ljava/lang/String;Lrx/subjects/PublishSubject;Ljava/lang/Class;)Lrx/Observable; type Ljava/lang/Class; !Lrx/subjects/PublishSubject; Ljava/lang/Class; u(Ljava/lang/String;Lrx/subjects/PublishSubject;Ljava/lang/Class;)Lrx/Observable; createPubChannel Lrx/subjects/ReplaySubject; GLrx/subjects/ReplaySubject;0 O(Ljava/lang/String;)Lrx/Observable; clearIfError 8(Lrx/subjects/Subject;Ljava/lang/String;)Lrx/Observable; Lrx/subjects/Subject; Lrx/subjects/Subject; [(Lrx/subjects/Subject;Ljava/lang/String;)Lrx/Observable; clean ()V removePublisher
access$000 ?(Lio/relayr/java/websocket/WebSocketClient;Lio/relayr/java/model/channel/DataChannel;Ljava/lang/String;Lrx/subjects/PublishSubject;)V x0 x1 x2 x3
access$100 P(Lio/relayr/java/websocket/WebSocketClient;)Lio/relayr/java/websocket/WebSocket;
access$200 ;(Lio/relayr/java/websocket/WebSocketClient;)Ljava/util/Map;
access$300 ~(Lio/relayr/java/websocket/WebSocketClient;Ljava/lang/String;Lio/relayr/java/model/action/Reading;Lrx/subjects/AsyncSubject;)V
SourceFile WebSocketClient.java Ljavax/inject/Singleton; ? ? p q l m ? ? | ? java/util/HashMap s q u q v q x q z q j kABCDEFGH ? ?IJK ? ?LM
rx/ObservableNOPQ .io/relayr/java/model/channel/ChannelDefinitionRST |UVNW *io/relayr/java/websocket/WebSocketClient$2 |XYZ[\]^_ *io/relayr/java/websocket/WebSocketClient$1 |` ?a *io/relayr/java/websocket/WebSocketClient$3 |bcdeF *io/relayr/java/websocket/WebSocketClient$4 |fg ?h rx/subjects/PublishSubjecti ?jMkl (io/relayr/java/model/channel/DataChannelmop ?q rx/subjects/AsyncSubjectNr ? ? *io/relayr/java/websocket/WebSocketClient$5 |s ?t ? ? java/lang/StringBuilderuv datawF com/google/gson/Gsonxy ?z{|}~ ,org/eclipse/paho/client/mqttv3/MqttException ? ? java/lang/Exception WebSocketClient - MqttException |??? #WebSocketClient - Unknown exception #io/relayr/java/model/action/Command ? ? )io/relayr/java/model/action/Configuration *io/relayr/java/websocket/WebSocketClient$6 |? rx/subjects/ReplaySubjectN???????? *io/relayr/java/websocket/WebSocketClient$9 *io/relayr/java/websocket/WebSocketClient$7 *io/relayr/java/websocket/WebSocketClient$8 ?? +io/relayr/java/websocket/WebSocketClient$10?? ?? ?? ? (io/relayr/java/websocket/WebSocketClient java/lang/Object )io/relayr/java/websocket/WebSocketFactory createWebSocket &()Lio/relayr/java/websocket/WebSocket; io/relayr/java/model/Device getId ()Ljava/lang/String; empty ()Lrx/Observable;
java/util/Map containsKey (Ljava/lang/Object;)Z get &(Ljava/lang/Object;)Ljava/lang/Object; create ()Lrx/subjects/PublishSubject; put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; -io/relayr/java/model/channel/ChannelTransport MQTT /Lio/relayr/java/model/channel/ChannelTransport; D(Ljava/lang/String;Lio/relayr/java/model/channel/ChannelTransport;)V io/relayr/java/api/ChannelApi A(Lio/relayr/java/model/channel/ChannelDefinition;)Lrx/Observable; -(Lio/relayr/java/websocket/WebSocketClient;)V flatMap %(Lrx/functions/Func1;)Lrx/Observable; rx/schedulers/Schedulers newThread ()Lrx/Scheduler; subscribeOn (Lrx/Scheduler;)Lrx/Observable; [(Lio/relayr/java/websocket/WebSocketClient;Ljava/lang/String;Lrx/subjects/PublishSubject;)V "(Lrx/Subscriber;)Lrx/Subscription; ?(Lio/relayr/java/websocket/WebSocketClient;Ljava/lang/String;)V doOnError '(Lrx/functions/Action1;)Lrx/Observable; getTopic ?(Lio/relayr/java/websocket/WebSocketClient;Ljava/lang/String;Lio/relayr/java/model/channel/DataChannel;Lrx/subjects/PublishSubject;)V "io/relayr/java/websocket/WebSocket S(Ljava/lang/String;Ljava/lang/String;Lio/relayr/java/websocket/WebSocketCallback;)Z onCompleted remove isEmpty ()Z getCredentials ChannelCredentials ?()Lio/relayr/java/model/channel/DataChannel$ChannelCredentials; ;io/relayr/java/model/channel/DataChannel$ChannelCredentials (Ljava/lang/String;)Z ()Lrx/subjects/AsyncSubject; ~(Lio/relayr/java/websocket/WebSocketClient;Ljava/lang/String;Lrx/subjects/AsyncSubject;Lio/relayr/java/model/action/Reading;)V (Lrx/Observer;)Lrx/Subscription; append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString toJson &(Ljava/lang/Object;)Ljava/lang/String; 9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z java/lang/Boolean valueOf (Z)Ljava/lang/Boolean; onNext (Ljava/lang/Object;)V *(Ljava/lang/String;Ljava/lang/Throwable;)V onError (Ljava/lang/Throwable;)V l(Lio/relayr/java/websocket/WebSocketClient;Lrx/subjects/PublishSubject;Ljava/lang/String;Ljava/lang/Class;)V ()Lrx/subjects/ReplaySubject; createForDevice S(Lio/relayr/java/model/channel/ChannelDefinition;Ljava/lang/String;)Lrx/Observable; java/util/concurrent/TimeUnit SECONDS Ljava/util/concurrent/TimeUnit; timeout 1(JLjava/util/concurrent/TimeUnit;)Lrx/Observable; ?(Lrx/functions/Action1;Lrx/functions/Action1;)Lrx/Subscription; rx/subjects/Subject reset clear removePublishClient ! g h j k l m n o p q n r s q n t u q n r v q n w x q n y z q n { | } ~ ? T*? *? Y? ? *? Y? ? *? Y? ? *? Y? ?
*? Y? ? *? Y? ? *+?
*,? ? ? *
5 + , . % / 0 0 ; 2 F 6 K 7 S 8 ? T ? ? T ? k T ? ? ? ? ? ? ~ Z +?
+? ? ? ?*+? ? ?
? @ ? ? ? ? ? ? n ? ? ? ~ o )+? ? ?*? +? ? *+? ?*? +? ? ? H J K ? ) ? ? ) ? ? ? n ? " ? ? ~ ? Q? M*? +,? W*?
? Y+? ? ? ? Y*? ? ? ? ? !Y*+,? "? #W,? $Y*+? %? &? O P R , S / X ? Y C g ? Q ? ? Q ? ? M ? ? ? M ? ? n ? ? ? ~ z *? +? '+? (? )Y*,+-? *? +W?
p ? ? * ? ? ? ? ? ? ? ? ? ? ? n ? ? ? ~ ? j*? +? ? *? +? ? ,? -*? +? . W*? ? / ? 8*? +? ? +*? *? +? ? 0? 1? 2? 3? *? +? . W? ?
? ? ( ? A ? ^ ? i ? ? j ? ? j ? ? ? (? @ ! ? ? ~ ? W*?
+? ? 4N-?
*+,-? ? <*? +? ? ? ?? 5:*+? 6? ? ? 7Y*+,? 8? 9W*+? :?-? *
? ? ? ? - ? 2 ? 7 ? I ? M ? U ? ? 4 2 # ? ? W ? ? W ? ? W ? ? I ? ? ? 2 # ? ? I ? ? ?
? ?' n ? ? ? ~ I z*? +? ;Y? <*? +? ? 0? 1? 2? =>? =? ?? @Y? A,? B? C6-? D? E-? F? 2:*+? H-? IYJ? K? L? :*+? H-? IYM? K? L? G J G G c I : ? 2 ? 5 ? : ? C ? G ? J ? L ? Q ? ` ? c ? e ? j ? y ? ? H :
? ? L ? ? e ? ? z ? ? z ? ? z ? ? z ? ? ? z ? ? ?
? J ?X ? n ? ? ? ~ ? 0+? ? ?*? +? ? ? M*+,N? O?*? +? ? ? ? ? ? ? " ? ? ? ? 0 ? ? 0 ? ? ? ? ? ? n ? ? ? ~ ? 0+? ? ?*? +? ? ? M*+,P? O?*? +? ? ? ? ? ? ? " ? ? ? ? 0 ? ? 0 ? ? ? ? ? ? n ? ? ? ~ ? -*? +,? W*+? 6? ? ? QY*,+-? R? #W*,+? :? ? ? ? " ? & ? * - ? ? - ? ? - ? ? - ? ? ? - ? ? - ? ? n ? ? ? ~ ? u*? +? ? SM,? X? TM*? +,? W*?
? Y+? ? +? U V? X? Y? ? ? ZY*? [? ? \Y*+? ]? ^Y*+? _? `W*? +? ? ? *
# $ % &