@OnRedisPMessage('decoratorTestPattern-*', null, (msg:PubSubMessage<number>) => {
return msg.data > 10; // This middleware will act as filter,
// only messagea with data greater than 10 will continue to the next method
public static patternListener(msg) {
this.decoratorTestPattern = msg;