This repository has been archived by the owner on Jun 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #191 from badgerwithagun/fix-gdax-disconnect-npe
- Bitfinex proxy support - Various updated dependencies - Performance improvements (ObjectMapper reuse and using treeToValue() calls) - Fix for non-3-character tickers on Binance - Reconnect/connection success events for some exchanges (GDAX being the main one)
- Loading branch information
Showing
42 changed files
with
636 additions
and
129 deletions.
There are no files selected for viewing
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
28 changes: 28 additions & 0 deletions
28
...y/src/main/java/info/bitrich/xchangestream/service/netty/StreamingObjectMapperHelper.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,28 @@ | ||
package info.bitrich.xchangestream.service.netty; | ||
|
||
import com.fasterxml.jackson.databind.DeserializationFeature; | ||
import com.fasterxml.jackson.databind.ObjectMapper; | ||
|
||
/** | ||
* This class should be merged with ObjectMapperHelper from XStream.. | ||
* | ||
* @author Nikita Belenkiy on 19/06/2018. | ||
*/ | ||
public class StreamingObjectMapperHelper { | ||
|
||
private static final ObjectMapper objectMapper; | ||
|
||
static { | ||
objectMapper = new ObjectMapper(); | ||
objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); | ||
} | ||
|
||
private StreamingObjectMapperHelper() { | ||
|
||
} | ||
|
||
public static ObjectMapper getObjectMapper() { | ||
return objectMapper; | ||
} | ||
|
||
} |
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
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
Oops, something went wrong.