コード例 #1
0
 @Override
 public Consumer createConsumer(Processor processor) throws Exception {
   Twitter4JConsumer twitter4jConsumer = Twitter4JFactory.getConsumer(this, getEndpointUri());
   // update the pulling lastID with sinceId
   twitter4jConsumer.setLastId(properties.getSinceId());
   Consumer tc = new TwitterConsumerPolling(this, processor, twitter4jConsumer);
   configureConsumer(tc);
   return tc;
 }
コード例 #2
0
 @Override
 public Producer createProducer() throws Exception {
   return Twitter4JFactory.getProducer(this, getEndpointUri());
 }