Example usage for twitter4j StallWarning getCode

List of usage examples for twitter4j StallWarning getCode

Introduction

In this page you can find the example usage for twitter4j StallWarning getCode.

Prototype

public String getCode() 

Source Link

Usage

From source file:com.github.jcustenborder.kafka.connect.twitter.TwitterSourceTask.java

License:Apache License

@Override
public void onStallWarning(StallWarning stallWarning) {
    if (log.isWarnEnabled()) {
        log.warn("code = '{}' percentFull = '{}' - {}", stallWarning.getCode(), stallWarning.getPercentFull(),
                stallWarning.getMessage());
    }//  ww  w .  j  a  v a 2  s.  c o  m
}

From source file:com.narvis.frontend.twitter.input.Input.java

License:Open Source License

@Override
public void onStallWarning(StallWarning sw) {
    NarvisLogger.logInfo("Stallwarning received, code : " + sw.getCode() + " message : " + sw.getMessage());
}