|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mule.service.AbstractService org.mule.module.jca.JcaService
public class JcaService
JcaService
Is the type of service used in Mule when embedded inside
an app server using JCA. In the future we might want to use one of the existing
models.
Field Summary |
---|
Fields inherited from class org.mule.service.AbstractService |
---|
component, exceptionListener, inboundRouter, INITIAL_STATE_PAUSED, INITIAL_STATE_STARTED, INITIAL_STATE_STOPPED, initialised, initialState, logger, model, muleContext, name, outboundRouter, paused, responseRouter, stats, stopped, stopping |
Fields inherited from interface org.mule.api.lifecycle.Initialisable |
---|
PHASE_NAME |
Fields inherited from interface org.mule.api.lifecycle.Startable |
---|
PHASE_NAME |
Fields inherited from interface org.mule.api.lifecycle.Stoppable |
---|
PHASE_NAME |
Fields inherited from interface org.mule.api.lifecycle.Disposable |
---|
PHASE_NAME |
Constructor Summary | |
---|---|
JcaService()
|
Method Summary | |
---|---|
protected void |
doDispatch(MuleEvent event)
|
protected void |
doPause()
Custom components can execute code necessary to put the service in a paused state here. |
protected void |
doResume()
Custom components can execute code necessary to resume a service once it has been paused If a developer overloads this method the doPause() method MUST also be overloaded to avoid inconsistent state in the service |
protected MuleMessage |
doSend(MuleEvent event)
Implementation of template method which is never call because send() is overwritten |
boolean |
isPaused()
Determines if the service is in a paused state |
MuleMessage |
sendEvent(MuleEvent event)
This is the synchronous call method and not supported by components managed in a JCA container |
protected void |
waitIfPaused(MuleEvent event)
Called before an event is sent or dispatched to a service, it will block until resume() is called. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JcaService()
Method Detail |
---|
public MuleMessage sendEvent(MuleEvent event) throws MuleException
sendEvent
in interface Service
sendEvent
in class AbstractService
event
-
MuleException
public boolean isPaused()
AbstractService
isPaused
in interface Service
isPaused
in class AbstractService
protected void waitIfPaused(MuleEvent event) throws InterruptedException
AbstractService
waitIfPaused
in class AbstractService
event
- the current event being passed to the service
InterruptedException
- if the thread is interruptedprotected void doPause() throws MuleException
AbstractService
doPause
in class AbstractService
MuleException
protected void doResume() throws MuleException
AbstractService
doResume
in class AbstractService
MuleException
protected void doDispatch(MuleEvent event) throws MuleException
doDispatch
in class AbstractService
MuleException
protected MuleMessage doSend(MuleEvent event) throws MuleException
doSend
in class AbstractService
MuleException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |