Package com.comcast.cns.model

Examples of com.comcast.cns.model.CNSSubscription.checkIsValid()


        CmbComposite columnName = cassandraHandler.getCmbComposite(endpoint, protocol.name());
        CmbColumn<CmbComposite, String> column = cassandraHandler.readColumn(AbstractDurablePersistence.CNS_KEYSPACE, columnFamilySubscriptions, Util.getCnsTopicArn(arn), columnName, CMB_SERIALIZER.STRING_SERIALIZER, CMB_SERIALIZER.COMPOSITE_SERIALIZER, CMB_SERIALIZER.STRING_SERIALIZER);
       
        if (column != null) {
            CNSSubscription s = extractSubscriptionFromColumn(column, Util.getCnsTopicArn(arn));
            s.checkIsValid();
              return s;
        }       
    }
   
    return null;
View Full Code Here


                }
               
                // ignore invalid subscriptions coming from Cassandra
               
                try {
                  subscription.checkIsValid();
                } catch (CMBException ex) {
                  logger.error("event=invalid_subscription " + subscription.toString(), ex);
                  continue;
                }
               
View Full Code Here

            CNSSubscription sub = extractSubscriptionFromColumn(col, topicArn);
           
                // ignore invalid subscriptions coming from Cassandra
               
                try {
                  sub.checkIsValid();
                } catch (CMBException ex) {
                  logger.error("event=invalid_subscription " + sub.toString(), ex);
                  continue;
                }
           
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.