transition enricher rabbit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package click.kamil.domain;
|
||||
|
||||
import org.springframework.messaging.support.GenericMessage;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public class CustomStateMachineMessage<T, P> extends GenericMessage<T> {
|
||||
|
||||
private final P customPayload;
|
||||
|
||||
public CustomStateMachineMessage(T payload, P customPayload) {
|
||||
super(payload);
|
||||
this.customPayload = customPayload;
|
||||
}
|
||||
|
||||
public CustomStateMachineMessage(T payload, Map<String, Object> headers, P customPayload) {
|
||||
super(payload, headers);
|
||||
this.customPayload = customPayload;
|
||||
}
|
||||
|
||||
public P getCustomPayload() {
|
||||
return customPayload;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user