streams-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfranklin <...@git.apache.org>
Subject [GitHub] incubator-streams pull request: Twitter Modificaitons
Date Mon, 05 May 2014 22:05:54 GMT
Github user mfranklin commented on a diff in the pull request:

    https://github.com/apache/incubator-streams/pull/8#discussion_r12302487
  
    --- Diff: streams-contrib/streams-amazon-aws/streams-persist-s3/src/main/java/org/apache/streams/s3/S3PersistWriterTask.java
---
    @@ -0,0 +1,37 @@
    +package org.apache.streams.s3;
    +
    +import org.apache.streams.core.StreamsDatum;
    +import org.slf4j.Logger;
    +import org.slf4j.LoggerFactory;
    +
    +import java.util.Random;
    +
    +public class S3PersistWriterTask implements Runnable {
    +
    +    private static final Logger LOGGER = LoggerFactory.getLogger(S3PersistWriterTask.class);
    +
    +    private S3PersistWriter writer;
    +
    +    public S3PersistWriterTask(S3PersistWriter writer) {
    +        this.writer = writer;
    +    }
    +
    +    @Override
    +    public void run() {
    +        while(true) {
    +            if( writer.persistQueue.peek() != null ) {
    +                try {
    +                    StreamsDatum entry = writer.persistQueue.remove();
    --- End diff --
    
    See above re field access


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message