com.atlassian.confluence.plugins.emailgateway.service
Class BulkPollingEmailProcessingService

java.lang.Object
  extended by com.atlassian.confluence.plugins.emailgateway.service.BulkPollingEmailProcessingService
All Implemented Interfaces:
BulkEmailProcessingService

public class BulkPollingEmailProcessingService
extends java.lang.Object
implements BulkEmailProcessingService

An implementation of BulkEmailProcessingService which polls for new inbound emails using an EmailPoller, then hands them off to an EmailHandlerService for processing.

Since:
v5.0

Constructor Summary
BulkPollingEmailProcessingService(EmailPoller emailPoller, EmailHandlerService emailHandlerService)
           
 
Method Summary
 boolean isAvailable()
           
 int processInboundEmail()
          Processes any pending inbound emails.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BulkPollingEmailProcessingService

public BulkPollingEmailProcessingService(EmailPoller emailPoller,
                                         EmailHandlerService emailHandlerService)
Method Detail

isAvailable

public boolean isAvailable()
Specified by:
isAvailable in interface BulkEmailProcessingService

processInboundEmail

public int processInboundEmail()
Description copied from interface: BulkEmailProcessingService
Processes any pending inbound emails.

Specified by:
processInboundEmail in interface BulkEmailProcessingService
Returns:
The number of inbound emails successfully handled.


Copyright © 2003-2014 Atlassian. All Rights Reserved.