Skip to content

Commit a0a38be

Browse files
J-Bakulitkledkov
authored andcommitted
IGNITE-17541 Thin client: add spring compatible setter for "send stack trace to client" flag - Fixes #10230.
Signed-off-by: Aleksey Plekhanov <plehanov.alex@gmail.com> (cherry picked from commit 9494c2f)
1 parent e82f0d6 commit a0a38be

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

modules/core/src/main/java/org/apache/ignite/configuration/ThinClientConfiguration.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,25 @@ public boolean sendServerExceptionStackTraceToClient() {
111111
/**
112112
* @param sendServerExcStackTraceToClient If {@code true} sends a server exception stack to the client side.
113113
* @return {@code this} for chaining.
114+
* @deprecated Use {@link #setServerToClientExceptionStackTraceSending(boolean)} instead.
114115
*/
116+
@Deprecated
115117
public ThinClientConfiguration sendServerExceptionStackTraceToClient(boolean sendServerExcStackTraceToClient) {
116118
this.sendServerExcStackTraceToClient = sendServerExcStackTraceToClient;
117119

118120
return this;
119121
}
120122

123+
/**
124+
* @param sendStackTrace If {@code true} sends a server exception stack to the client side.
125+
* @return {@code this} for chaining.
126+
*/
127+
public ThinClientConfiguration setServerToClientExceptionStackTraceSending(boolean sendStackTrace) {
128+
sendServerExcStackTraceToClient = sendStackTrace;
129+
130+
return this;
131+
}
132+
121133
/** {@inheritDoc} */
122134
@Override public String toString() {
123135
return S.toString(ThinClientConfiguration.class, this);

0 commit comments

Comments
 (0)