org.mule.transport.jms.reconnect
Class ReconnectWorkManager
java.lang.Object
org.mule.transport.jms.reconnect.ReconnectWorkManager
- All Implemented Interfaces:
- Executor, javax.resource.spi.work.WorkManager, org.mule.api.lifecycle.Disposable, org.mule.api.lifecycle.Startable
public class ReconnectWorkManager
- extends Object
- implements org.mule.api.context.WorkManager
Fake work manager for executing jms endpoint level reconnection thread.
It will create only one thread since it's bound to one endpoint and it only requires one thread.
| Fields inherited from interface javax.resource.spi.work.WorkManager |
IMMEDIATE, INDEFINITE, UNKNOWN |
| Fields inherited from interface org.mule.api.lifecycle.Startable |
PHASE_NAME |
| Fields inherited from interface org.mule.api.lifecycle.Disposable |
PHASE_NAME |
|
Method Summary |
void |
dispose()
|
void |
doWork(javax.resource.spi.work.Work work)
|
void |
doWork(javax.resource.spi.work.Work work,
long startTimeout,
javax.resource.spi.work.ExecutionContext execContext,
javax.resource.spi.work.WorkListener workListener)
|
void |
execute(Runnable runnable)
|
boolean |
isStarted()
|
void |
scheduleWork(javax.resource.spi.work.Work work)
|
void |
scheduleWork(javax.resource.spi.work.Work work,
long startTimeout,
javax.resource.spi.work.ExecutionContext execContext,
javax.resource.spi.work.WorkListener workListener)
|
void |
start()
|
long |
startWork(javax.resource.spi.work.Work work)
|
long |
startWork(javax.resource.spi.work.Work work,
long startTimeout,
javax.resource.spi.work.ExecutionContext execContext,
javax.resource.spi.work.WorkListener workListener)
|
void |
stop()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReconnectWorkManager
public ReconnectWorkManager(org.mule.api.MuleContext muleContext)
isStarted
public boolean isStarted()
dispose
public void dispose()
- Specified by:
dispose in interface org.mule.api.lifecycle.Disposable
stop
public void stop()
execute
public void execute(Runnable runnable)
- Specified by:
execute in interface Executor
start
public void start()
throws org.mule.api.MuleException
- Specified by:
start in interface org.mule.api.lifecycle.Startable
- Throws:
org.mule.api.MuleException
doWork
public void doWork(javax.resource.spi.work.Work work)
throws javax.resource.spi.work.WorkException
- Specified by:
doWork in interface javax.resource.spi.work.WorkManager
- Throws:
javax.resource.spi.work.WorkException
doWork
public void doWork(javax.resource.spi.work.Work work,
long startTimeout,
javax.resource.spi.work.ExecutionContext execContext,
javax.resource.spi.work.WorkListener workListener)
throws javax.resource.spi.work.WorkException
- Specified by:
doWork in interface javax.resource.spi.work.WorkManager
- Throws:
javax.resource.spi.work.WorkException
startWork
public long startWork(javax.resource.spi.work.Work work)
throws javax.resource.spi.work.WorkException
- Specified by:
startWork in interface javax.resource.spi.work.WorkManager
- Throws:
javax.resource.spi.work.WorkException
startWork
public long startWork(javax.resource.spi.work.Work work,
long startTimeout,
javax.resource.spi.work.ExecutionContext execContext,
javax.resource.spi.work.WorkListener workListener)
throws javax.resource.spi.work.WorkException
- Specified by:
startWork in interface javax.resource.spi.work.WorkManager
- Throws:
javax.resource.spi.work.WorkException
scheduleWork
public void scheduleWork(javax.resource.spi.work.Work work)
throws javax.resource.spi.work.WorkException
- Specified by:
scheduleWork in interface javax.resource.spi.work.WorkManager
- Throws:
javax.resource.spi.work.WorkException
scheduleWork
public void scheduleWork(javax.resource.spi.work.Work work,
long startTimeout,
javax.resource.spi.work.ExecutionContext execContext,
javax.resource.spi.work.WorkListener workListener)
throws javax.resource.spi.work.WorkException
- Specified by:
scheduleWork in interface javax.resource.spi.work.WorkManager
- Throws:
javax.resource.spi.work.WorkException
Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.