mirror of
https://github.com/corda/corda.git
synced 2025-06-18 15:18:16 +00:00
Shortening lines
This commit is contained in:
@ -14,7 +14,8 @@ open class RPCException(message: String?, cause: Throwable?) : CordaRuntimeExcep
|
|||||||
* @param maxNumberOfRetries the number of retries that had been performed.
|
* @param maxNumberOfRetries the number of retries that had been performed.
|
||||||
* @param cause the cause of the last failed attempt.
|
* @param cause the cause of the last failed attempt.
|
||||||
*/
|
*/
|
||||||
class MaxRpcRetryException(maxNumberOfRetries: Int, cause: Throwable?): RPCException("Max number of retries ($maxNumberOfRetries) was reached.", cause)
|
class MaxRpcRetryException(maxNumberOfRetries: Int, cause: Throwable?):
|
||||||
|
RPCException("Max number of retries ($maxNumberOfRetries) was reached.", cause)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Signals that the underlying [RPCConnection] dropped.
|
* Signals that the underlying [RPCConnection] dropped.
|
||||||
|
@ -300,7 +300,8 @@ class ReconnectingCordaRPCOps private constructor(
|
|||||||
return when (method.returnType) {
|
return when (method.returnType) {
|
||||||
DataFeed::class.java -> {
|
DataFeed::class.java -> {
|
||||||
// Intercept the data feed methods and return a ReconnectingObservable instance
|
// Intercept the data feed methods and return a ReconnectingObservable instance
|
||||||
val initialFeed: DataFeed<Any, Any?> = uncheckedCast(doInvoke(method, args, reconnectingRPCConnection.gracefulReconnect.maxRetries))
|
val initialFeed: DataFeed<Any, Any?> = uncheckedCast(doInvoke(method, args,
|
||||||
|
reconnectingRPCConnection.gracefulReconnect.maxRetries))
|
||||||
val observable = ReconnectingObservable(reconnectingRPCConnection, initialFeed) {
|
val observable = ReconnectingObservable(reconnectingRPCConnection, initialFeed) {
|
||||||
// This handles reconnecting and creates new feeds.
|
// This handles reconnecting and creates new feeds.
|
||||||
uncheckedCast(this.invoke(reconnectingRPCConnection.proxy, method, args))
|
uncheckedCast(this.invoke(reconnectingRPCConnection.proxy, method, args))
|
||||||
|
Reference in New Issue
Block a user