forked from Netflix/Hystrix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switched to cbor and added a base class
- Loading branch information
1 parent
bb8f153
commit bdfd8f8
Showing
6 changed files
with
32 additions
and
42 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
...-stream/src/main/java/com/netflix/hystrix/contrib/reactivesocket/BasePayloadSupplier.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.netflix.hystrix.contrib.reactivesocket; | ||
|
||
import com.fasterxml.jackson.dataformat.cbor.CBORFactory; | ||
import io.reactivesocket.Payload; | ||
import rx.Observable; | ||
import rx.subjects.BehaviorSubject; | ||
|
||
import java.util.function.Supplier; | ||
|
||
public abstract class BasePayloadSupplier implements Supplier<Observable<Payload>> { | ||
protected final CBORFactory jsonFactory; | ||
|
||
protected final BehaviorSubject<Payload> subject; | ||
|
||
protected BasePayloadSupplier() { | ||
this.jsonFactory = new CBORFactory(); | ||
this.subject = BehaviorSubject.create(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 3 additions & 10 deletions
13
.../java/com/netflix/hystrix/contrib/reactivesocket/requests/HystrixRequestEventsStream.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 3 additions & 10 deletions
13
...main/java/com/netflix/hystrix/contrib/reactivesocket/sample/HystrixUtilizationStream.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters