Skip to content

Commit

Permalink
CORE-18320 Deprecated FlowMessaging functions that use parameter requ…
Browse files Browse the repository at this point in the history
…ireClose (#1422)
  • Loading branch information
mbrkic-r3 authored Dec 20, 2023
1 parent 7d428e1 commit a25631f
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,17 @@ public interface FlowMessaging {
* context has no effect on the context of the session after this point, and therefore it has no effect on the
* context of the initiated flow either.
*
* @deprecated
* Use {@link FlowMessaging#initiateFlow(MemberX500Name, FlowSessionConfiguration)} instead.
*
* @param x500Name The X500 name of the member to communicate with.
* @param requireClose When set to true, the initiated party will send a close message after calling FlowSession.close()
* and the initiating party will suspend and wait to receive the message when they call FlowSession.close().
* When set to false the session is marked as terminated immediately when close() is called.
*
* @return The session.
*/
@Deprecated(since = "5.2")
@Suspendable
@NotNull
FlowSession initiateFlow(@NotNull MemberX500Name x500Name, boolean requireClose);
Expand Down Expand Up @@ -190,6 +194,10 @@ public interface FlowMessaging {
* });
* ```
*
* @deprecated
* Use {@link FlowMessaging#initiateFlow(MemberX500Name, FlowSessionConfiguration, FlowContextPropertiesBuilder)}
* instead.
*
* @param x500Name The X500 name of the member to communicate with.
* @param requireClose When set to true, the initiated party will send a close message after calling FlowSession.close()
* and the initiating party will suspend and wait to receive the message when they call FlowSession.close().
Expand All @@ -204,6 +212,7 @@ public interface FlowMessaging {
* exception thrown by the builder will also be thrown through here and should be avoided in the provided
* implementation, see {@link FlowContextPropertiesBuilder}.
*/
@Deprecated(since = "5.2")
@Suspendable
@NotNull
FlowSession initiateFlow(@NotNull MemberX500Name x500Name, boolean requireClose, @NotNull FlowContextPropertiesBuilder flowContextPropertiesBuilder);
Expand Down

0 comments on commit a25631f

Please sign in to comment.