Package org.apache.openjpa.kernel
Interface ConnectionRetainModes
- All Known Subinterfaces:
Broker
,DistributedBroker
- All Known Implementing Classes:
BrokerImpl
,DelegatingBroker
,DistributedBrokerImpl
,FinalizingBrokerImpl
public interface ConnectionRetainModes
Connection retain mode constants.
- Since:
- 0.4.0
- Author:
- Abe White
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Constant indicating that each broker will retain a single connection that it will use for its lifespan.static final int
Constant indicating that connections will be obtained as needed.static final int
Constant indicating that connections will be retained for the life of each transaction.
-
Field Details
-
CONN_RETAIN_DEMAND
static final int CONN_RETAIN_DEMANDConstant indicating that connections will be obtained as needed.- See Also:
-
CONN_RETAIN_TRANS
static final int CONN_RETAIN_TRANSConstant indicating that connections will be retained for the life of each transaction.- See Also:
-
CONN_RETAIN_ALWAYS
static final int CONN_RETAIN_ALWAYSConstant indicating that each broker will retain a single connection that it will use for its lifespan.- See Also:
-