Метод | Описание | |
---|---|---|
CachingConnectionFactory ( ) : System |
Initializes a new instance of the CachingConnectionFactory class. and sets the ReconnectOnException to true
|
|
CachingConnectionFactory ( IConnectionFactory targetConnectionFactory ) : System |
Initializes a new instance of the CachingConnectionFactory class for the given IConnectionFactory
|
|
GetSession ( IConnection con, AcknowledgementMode mode ) : ISession |
Obtaining a cached Session.
|
|
ResetConnection ( ) : void |
Resets the Session cache as well as resetting the connection.
|
Метод | Описание | |
---|---|---|
GetCachedSessionWrapper ( ISession targetSession, Spring.Collections.LinkedList sessionList ) : ISession |
Wraps the given Session so that it delegates every method call to the target session but adapts close calls. This is useful for allowing application code to handle a special framework Session just like an ordinary Session.
|
public CachingConnectionFactory ( ) : System | ||
Результат | System |
public CachingConnectionFactory ( IConnectionFactory targetConnectionFactory ) : System | ||
targetConnectionFactory | IConnectionFactory | The target connection factory. |
Результат | System |
protected GetCachedSessionWrapper ( ISession targetSession, Spring.Collections.LinkedList sessionList ) : ISession | ||
targetSession | ISession | The original Session to wrap. |
sessionList | Spring.Collections.LinkedList | The List of cached Sessions that the given Session belongs to. |
Результат | ISession |
public GetSession ( IConnection con, AcknowledgementMode mode ) : ISession | ||
con | IConnection | The connection to operate on. |
mode | AcknowledgementMode | The session ack mode. |
Результат | ISession |