KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > umo > UMOTransactionConfig


1 /*
2  * $Id: UMOTransactionConfig.java 3167 2006-09-22 15:47:04Z holger $
3  * --------------------------------------------------------------------------------------
4  * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
5  *
6  * The software in this package is published under the terms of the MuleSource MPL
7  * license, a copy of which has been included with this distribution in the
8  * LICENSE.txt file.
9  */

10
11 package org.mule.umo;
12
13 import org.mule.transaction.constraints.ConstraintFilter;
14
15 /**
16  * <p>
17  * <code>UMOTransactionConfig</code> defines transaction configuration for a
18  * transactional endpoint.
19  *
20  * @author <a HREF="mailto:ross.mason@symphonysoft.com">Ross Mason</a>
21  * @version $Revision: 3167 $
22  */

23 public interface UMOTransactionConfig
24 {
25     byte ACTION_NONE = 0;
26     byte ACTION_ALWAYS_BEGIN = 1;
27     byte ACTION_BEGIN_OR_JOIN = 2;
28     byte ACTION_ALWAYS_JOIN = 3;
29     byte ACTION_JOIN_IF_POSSIBLE = 4;
30
31     UMOTransactionFactory getFactory();
32
33     void setFactory(UMOTransactionFactory factory);
34
35     byte getAction();
36
37     void setAction(byte action);
38
39     boolean isTransacted();
40
41     ConstraintFilter getConstraint();
42
43     void setConstraint(ConstraintFilter constraint);
44
45     void setTimeout(int timeout);
46
47     int getTimeout();
48 }
49
Popular Tags