|
|||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
TransactionalEvent.java | - | - | - | - |
|
1 | package org.jboss.cache.notifications.event; | |
2 | ||
3 | import javax.transaction.Transaction; | |
4 | ||
5 | /** | |
6 | * An event type that includes a transaction context - if one exists - as well as a boolean as to whether the call | |
7 | * originated locally or remotely. | |
8 | * | |
9 | * @author <a href="mailto:manik@jboss.org">Manik Surtani</a> | |
10 | * @since 2.0.0 | |
11 | */ | |
12 | public interface TransactionalEvent extends Event | |
13 | { | |
14 | /** | |
15 | * @return the Transaction associated with the current call. May be null if the current call is outside the | |
16 | * scope of a transaction. | |
17 | */ | |
18 | Transaction getTransaction(); | |
19 | ||
20 | /** | |
21 | * @return true if the call originated on the local cache instance; false if originated from a remote one. | |
22 | */ | |
23 | boolean isOriginLocal(); | |
24 | } |
|