You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a thought for 3.7.0, add a RecoverableConnection interface such as; public interface RecoverableConnection extends Connection, Recoverable { }
And update AutorecoveringConnection as; public class AutorecoveringConnection implements RecoverableConnection, NetworkConnection {
This just makes casting and using a recoverable connection a bit easier than casting to either just Recoverable (which just exposes the two methods) or the concrete class.
As a thought for 3.7.0, add a RecoverableConnection interface such as;
public interface RecoverableConnection extends Connection, Recoverable { }
And update AutorecoveringConnection as;
public class AutorecoveringConnection implements RecoverableConnection, NetworkConnection {
This just makes casting and using a recoverable connection a bit easier than casting to either just Recoverable (which just exposes the two methods) or the concrete class.
ie, instead of;
Would be;
Similar could be done for RecoverableChannel
A newRecoverableConnection(...) method on factory may also make ones intent very clear as well, although not necessary.
The text was updated successfully, but these errors were encountered: