1 10 11 package org.mule.impl.model; 12 13 import org.mule.management.stats.ComponentStatistics; 14 import org.mule.umo.UMOEvent; 15 import org.mule.umo.UMOException; 16 import org.mule.umo.UMOImmutableDescriptor; 17 import org.mule.umo.lifecycle.Lifecycle; 18 import org.mule.util.queue.QueueSession; 19 20 import javax.resource.spi.work.Work ; 21 22 26 27 public interface MuleProxy extends Work , Lifecycle 28 { 29 30 35 public void onEvent(QueueSession session, UMOEvent event); 36 37 public ComponentStatistics getStatistics(); 38 39 public void setStatistics(ComponentStatistics stat); 40 41 48 public Object onCall(UMOEvent event) throws UMOException; 49 50 56 public void handleException(Exception exception); 57 58 63 public boolean isSuspended(); 64 65 68 public void suspend(); 69 70 73 public void resume(); 74 75 80 public UMOImmutableDescriptor getDescriptor(); 81 } 82 | Popular Tags |