@Override public <T> boolean unsubscribe( ConcurrentMap<Class<?>, List<SubscriberParent>> mapping, Subscriber<T> s, Class<T> messageType) { return strat.unsubscribe(mapping, s, messageType); }
@Override public <S extends Subscriber<T>, T> boolean unsubscribeByTypes( ConcurrentMap<Class<?>, List<SubscriberParent>> mapping, S subscriberType, Class<T> messageType) { // TODO: Unregister from JSONDecoder. return strat.unsubscribeByTypes(mapping, subscriberType, messageType); }
@Override public <T> void subscribe( ConcurrentMap<Class<?>, List<SubscriberParent>> mapping, Subscriber<?> subscriber, Class<T> messageType) { if (!messageType.isAssignableFrom(JSONDecoderRegister.class)) broker.publish(new JSONDecoderRegister(messageType)); strat.subscribe(mapping, subscriber, messageType); }
@Override public <T> List<Subscriber<T>> unsubscribeAll( ConcurrentMap<Class<?>, List<SubscriberParent>> mapping, Class<T> messageType) { // TODO: Unregister from JSONDecoder. return strat.unsubscribeAll(mapping, messageType); }