示例#1
0
 @Override
 public <T> boolean unsubscribe(
     ConcurrentMap<Class<?>, List<SubscriberParent>> mapping,
     Subscriber<T> s,
     Class<T> messageType) {
   return strat.unsubscribe(mapping, s, messageType);
 }
示例#2
0
 @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);
 }
示例#3
0
 @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);
 }
示例#4
0
 @Override
 public <T> List<Subscriber<T>> unsubscribeAll(
     ConcurrentMap<Class<?>, List<SubscriberParent>> mapping, Class<T> messageType) {
   // TODO: Unregister from JSONDecoder.
   return strat.unsubscribeAll(mapping, messageType);
 }