public class GMailProvider extends Object implements StreamsProvider, Serializable
Modifier and Type | Field and Description |
---|---|
protected DatumStatusCounter |
countersCurrent |
protected DatumStatusCounter |
countersTotal |
protected com.googlecode.gmail4j.javamail.ImapGmailClient |
imapClient |
protected BlockingQueue |
inQueue |
protected Queue<StreamsDatum> |
providerQueue |
protected com.googlecode.gmail4j.GmailClient |
rssClient |
static String |
STREAMS_ID |
protected Future |
task |
Constructor and Description |
---|
GMailProvider() |
GMailProvider(Class klass) |
GMailProvider(GMailConfiguration config) |
GMailProvider(GMailConfiguration config,
Class klass) |
Modifier and Type | Method and Description |
---|---|
void |
cleanUp() |
GMailConfiguration |
getConfig() |
String |
getId() |
BlockingQueue<Object> |
getInQueue() |
boolean |
isRunning() |
void |
prepare(Object configurationObject) |
StreamsResultSet |
readCurrent() |
StreamsResultSet |
readNew(BigInteger sequence) |
StreamsResultSet |
readRange(org.joda.time.DateTime start,
org.joda.time.DateTime end) |
void |
setConfig(GMailConfiguration config) |
void |
startStream() |
public static final String STREAMS_ID
protected BlockingQueue inQueue
protected volatile Queue<StreamsDatum> providerQueue
protected Future task
protected com.googlecode.gmail4j.GmailClient rssClient
protected com.googlecode.gmail4j.javamail.ImapGmailClient imapClient
protected DatumStatusCounter countersTotal
protected DatumStatusCounter countersCurrent
public GMailProvider()
public GMailProvider(GMailConfiguration config)
public GMailProvider(Class klass)
public GMailProvider(GMailConfiguration config, Class klass)
public GMailConfiguration getConfig()
public void setConfig(GMailConfiguration config)
public BlockingQueue<Object> getInQueue()
public String getId()
getId
in interface StreamsOperation
public void startStream()
startStream
in interface StreamsProvider
public StreamsResultSet readCurrent()
readCurrent
in interface StreamsProvider
public StreamsResultSet readNew(BigInteger sequence)
readNew
in interface StreamsProvider
public StreamsResultSet readRange(org.joda.time.DateTime start, org.joda.time.DateTime end)
readRange
in interface StreamsProvider
public boolean isRunning()
isRunning
in interface StreamsProvider
public void prepare(Object configurationObject)
prepare
in interface StreamsOperation
public void cleanUp()
cleanUp
in interface StreamsOperation
Copyright © 2018 The Apache Software Foundation. All rights reserved.