クラス MutablePooledContextSource
java.lang.ObjectSE
org.springframework.ldap.core.support.DelegatingBaseLdapPathContextSourceSupport
org.springframework.ldap.pool2.factory.PooledContextSource
org.springframework.ldap.pool2.factory.MutablePooledContextSource
- 実装済みのインターフェース一覧:
org.springframework.beans.factory.DisposableBean, ContextSource, BaseLdapPathSource
MutableDelegatingLdapContext インスタンスを作成する PooledContextSource サブクラス。これにより、ページングされた結果など、リクエスト制御の設定が必要なシナリオで Spring LDAP プーリングを使用できるようになります。- 導入:
- 2.0
フィールド概要
クラス PooledContextSource から継承されたフィールド
keyedObjectPool, loggerコンストラクター概要
コンストラクターコンストラクター説明MutablePooledContextSource(ContextSource contextSource, @Nullable PoolConfig poolConfig) 新しいプーリングコンテキストソースを作成し、DirContext オブジェクトファクトリと汎用のキー付きオブジェクトプールを設定します。MutablePooledContextSource(@Nullable PoolConfig poolConfig) 使用すべきではありません。方法の概要
修飾子と型メソッド説明protected DirContextSEgetContext(DirContextType dirContextType) キー付きオブジェクトプールから、指定された型の DirContext を取得します。クラス PooledContextSource から継承されたメソッド
destroy, getContext, getContextSource, getDirContextValidator, getNumActive, getNumActiveRead, getNumActiveWrite, getNumIdle, getNumIdleRead, getNumIdleWrite, getNumWaiters, getPoolConfig, getReadOnlyContext, getReadWriteContext, getTarget, setContextSource, setDirContextValidator, setNonTransientExceptions
コンストラクターの詳細
MutablePooledContextSource
使用すべきではありません。コンストラクターに基となるContextSourceを指定してください新しいプーリングコンテキストソースを作成し、DirContext オブジェクトファクトリと汎用のキー付きオブジェクトプールを設定します。- パラメーター:
poolConfig- 設定するプール構成。
MutablePooledContextSource
新しいプーリングコンテキストソースを作成し、DirContext オブジェクトファクトリと汎用のキー付きオブジェクトプールを設定します。- パラメーター:
contextSource- 基礎となるContextSourcepoolConfig- 設定するプール構成。- 導入:
- 4.1
方法の詳細
getContext
クラスからコピーされた説明:PooledContextSourceキー付きオブジェクトプールから、指定された型の DirContext を取得します。- オーバーライド:
- クラス
PooledContextSourceのgetContext - パラメーター:
dirContextType- 返すコンテキストの型。- 戻り値:
- 指定された型のラップされた DirContext。
ContextSourceを指定してください