Java Doc for AbstractPollingMessageReceiver.java in  » ESB » mule » org » mule » transport » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ESB » mule » org.mule.transport 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.mule.transport.AbstractMessageReceiver
      org.mule.transport.AbstractPollingMessageReceiver

All known Subclasses:   org.mule.transport.email.RetrieveMessageReceiver,  org.mule.transport.stdio.StdioMessageReceiver,  org.mule.transport.http.PollingHttpMessageReceiver,  org.mule.transport.ftp.FtpMessageReceiver,  org.mule.transport.rmi.RmiMessageReceiver,  org.mule.transport.TransactedPollingMessageReceiver,  org.mule.transport.file.FileMessageReceiver,
AbstractPollingMessageReceiver
abstract public class AbstractPollingMessageReceiver extends AbstractMessageReceiver (Code)
AbstractPollingMessageReceiver implements a base class for polling message receivers. The receiver provides a AbstractPollingMessageReceiver.poll() method that implementations must implement to execute their custom code. Note that the receiver will not poll if the associated connector is not started.


Field Summary
final public static  longDEFAULT_POLL_FREQUENCY
    
final public static  TimeUnitDEFAULT_POLL_TIMEUNIT
    
final public static  longDEFAULT_STARTUP_DELAY
    
final protected  Listschedules
    

Constructor Summary
public  AbstractPollingMessageReceiver(Connector connector, Service service, InboundEndpoint endpoint)
    

Method Summary
protected  PollingReceiverWorkercreateWork()
    
protected  voiddoStart()
    
protected  voiddoStop()
    
public  longgetFrequency()
    
public  TimeUnitgetTimeUnit()
    
abstract public  voidpoll()
    
protected  voidschedule()
     This method registers this receiver for periodic polling ticks with the connectors scheduler.
public  voidsetFrequency(long value)
    
public  voidsetTimeUnit(TimeUnit timeUnit)
    
protected  voidunschedule()
     This method cancels the schedules which were created in AbstractPollingMessageReceiver.schedule() .

Field Detail
DEFAULT_POLL_FREQUENCY
final public static long DEFAULT_POLL_FREQUENCY(Code)



DEFAULT_POLL_TIMEUNIT
final public static TimeUnit DEFAULT_POLL_TIMEUNIT(Code)



DEFAULT_STARTUP_DELAY
final public static long DEFAULT_STARTUP_DELAY(Code)



schedules
final protected List schedules(Code)




Constructor Detail
AbstractPollingMessageReceiver
public AbstractPollingMessageReceiver(Connector connector, Service service, InboundEndpoint endpoint) throws CreateException(Code)




Method Detail
createWork
protected PollingReceiverWorker createWork()(Code)



doStart
protected void doStart() throws MuleException(Code)



doStop
protected void doStop() throws MuleException(Code)



getFrequency
public long getFrequency()(Code)



getTimeUnit
public TimeUnit getTimeUnit()(Code)



poll
abstract public void poll() throws Exception(Code)



schedule
protected void schedule() throws RejectedExecutionException, NullPointerException, IllegalArgumentException(Code)
This method registers this receiver for periodic polling ticks with the connectors scheduler. Subclasses can override this in case they want to handle their polling differently.
throws:
  RejectedExecutionException -
throws:
  NullPointerException -
throws:
  IllegalArgumentException -
See Also:    ScheduledExecutorService.scheduleWithFixedDelay(RunnablelonglongTimeUnit)



setFrequency
public void setFrequency(long value)(Code)



setTimeUnit
public void setTimeUnit(TimeUnit timeUnit)(Code)



unschedule
protected void unschedule()(Code)
This method cancels the schedules which were created in AbstractPollingMessageReceiver.schedule() .
See Also:    Future.cancel(boolean)



Fields inherited from org.mule.transport.AbstractMessageReceiver
final protected WaitableBoolean connected(Code)(Java Doc)
final protected AtomicBoolean connecting(Code)(Java Doc)
protected ConnectionStrategy connectionStrategy(Code)(Java Doc)
protected AbstractConnector connector(Code)(Java Doc)
final protected AtomicBoolean disposing(Code)(Java Doc)
protected InboundEndpoint endpoint(Code)(Java Doc)
final protected Log logger(Code)(Java Doc)
protected String receiverKey(Code)(Java Doc)
protected boolean responseEndpoint(Code)(Java Doc)
protected Service service(Code)(Java Doc)
final protected WaitableBoolean stopped(Code)(Java Doc)

Methods inherited from org.mule.transport.AbstractMessageReceiver
public void connect() throws Exception(Code)(Java Doc)
public void disconnect() throws Exception(Code)(Java Doc)
final public void dispose()(Code)(Java Doc)
abstract protected void doConnect() throws Exception(Code)(Java Doc)
abstract protected void doDisconnect() throws Exception(Code)(Java Doc)
abstract protected void doDispose()(Code)(Java Doc)
protected void doInitialise() throws InitialisationException(Code)(Java Doc)
abstract protected void doStart() throws MuleException(Code)(Java Doc)
abstract protected void doStop() throws MuleException(Code)(Java Doc)
protected String getConnectEventId()(Code)(Java Doc)
public String getConnectionDescription()(Code)(Java Doc)
public Connector getConnector()(Code)(Java Doc)
public InboundEndpoint getEndpoint()(Code)(Java Doc)
public EndpointURI getEndpointURI()(Code)(Java Doc)
public InternalMessageListener getListener()(Code)(Java Doc)
public String getReceiverKey()(Code)(Java Doc)
public Service getService()(Code)(Java Doc)
protected WorkManager getWorkManager()(Code)(Java Doc)
public void handleException(Exception exception)(Code)(Java Doc)
protected MuleMessage handleUnacceptedFilter(MuleMessage message)(Code)(Java Doc)
public LifecycleTransitionResult initialise() throws InitialisationException(Code)(Java Doc)
final public boolean isConnected()(Code)(Java Doc)
final public MuleMessage routeMessage(MuleMessage message) throws MuleException(Code)(Java Doc)
final public MuleMessage routeMessage(MuleMessage message, boolean synchronous) throws MuleException(Code)(Java Doc)
final public MuleMessage routeMessage(MuleMessage message, Transaction trans, boolean synchronous) throws MuleException(Code)(Java Doc)
final public MuleMessage routeMessage(MuleMessage message, OutputStream outputStream) throws MuleException(Code)(Java Doc)
final public MuleMessage routeMessage(MuleMessage message, boolean synchronous, OutputStream outputStream) throws MuleException(Code)(Java Doc)
final public MuleMessage routeMessage(MuleMessage message, Transaction trans, boolean synchronous, OutputStream outputStream) throws MuleException(Code)(Java Doc)
public void setConnector(Connector connector)(Code)(Java Doc)
public void setEndpoint(InboundEndpoint endpoint)(Code)(Java Doc)
protected void setExceptionDetails(MuleMessage message, Throwable exception)(Code)(Java Doc)
public void setListener(InternalMessageListener listener)(Code)(Java Doc)
public void setReceiverKey(String receiverKey)(Code)(Java Doc)
public void setService(Service service)(Code)(Java Doc)
protected void setWorkManager(WorkManager workManager)(Code)(Java Doc)
final public LifecycleTransitionResult start() throws MuleException(Code)(Java Doc)
final public LifecycleTransitionResult stop()(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.