public abstract class AbstractBasicCacheFactoryBean extends AbstractFactoryBeanSupport<org.apache.geode.cache.GemFireCache> implements DisposableBean, InitializingBean, PersistenceExceptionTranslator, Phased
CacheFactoryBean および ClientCacheFactoryBean クラスの抽象基本クラス。それぞれ Apache Geode ピア Cache および ClientCache インスタンスを作成するために使用されます。このクラスは Spring の PersistenceExceptionTranslator インターフェースを実装し、Spring の PersistenceExceptionTranslationPostProcessor によって自動検出され、ネイティブ Apache Geode RuntimeExceptionsSE から Spring の DataAccessException 階層への AOP ベースの変換を可能にします。このクラスが存在すると、Spring の PersistenceExceptionTranslationPostProcessor はネイティブ Apache Geode がスローした GemFireException および GemFireCheckedException 型を Spring DataAccessExceptions として自動的に変換できるようになります。さらに、このクラスは、Spring コンテナーのライフサイクルの適切なフェーズにキャッシュの作成を配置するロールも担い、初期化と破棄の両方にデフォルトのコールバックを提供します。さらに重要なことは、この抽象クラスは、JVM ヒープメモリを効率的に使用するために Apache Geode を調整するために適用可能な構成をカプセル化することです。Apache Geode はデータをメモリ内の JVM ヒープに保存するため、JVM ヒープを監視し、それに応じてメモリの負荷に対応するように Apache Geode を調整することが重要です。つまり、JVM ヒープが臨界質量に達したときにデータを削除して警告を発行します。この抽象クラスは、PDX の構成とトランザクションイベント処理、およびキャッシュの内容 (エントリ) を読み取り時に事実上不変にするかどうか (つまり get(key)) にも関係します。要約すると、この抽象クラスは主に次の関係の構成を処理およびカプセル化します。ClientCache インスタンスとピア Cache インスタンスの両方に当てはまります。GemFireCheckedException、GemFireException、Cache、CacheFactory、DiskStore、GemFireCache、Region、TransactionListener、TransactionWriter、ClientCache、ClientCacheFactory、PdxSerializer, DisposableBean, FactoryBean, InitializingBean, Phased, DataAccessException, PersistenceExceptionTranslationPostProcessor, PersistenceExceptionTranslator, CacheFactoryBean, ClientCacheFactoryBean, ClientCacheConfigurer, PeerCacheConfigurer, AbstractFactoryBeanSupport| 修飾子と型 | クラスと説明 |
|---|---|
static interface | AbstractBasicCacheFactoryBean.CacheFactoryInitializer<T>GemFireCache のインスタンスを作成するために使用される CacheFactory または ClientCacheFactory インスタンスを初期化するためのコールバックインターフェース。 |
static interface | AbstractBasicCacheFactoryBean.PdxConfigurer<T>PDX を構成するためのコールバックインターフェース。 |
DEFAULT_SINGLETONOBJECT_TYPE_ATTRIBUTE| コンストラクターと説明 |
|---|
AbstractBasicCacheFactoryBean() |
| 修飾子と型 | メソッドと説明 |
|---|---|
void | afterPropertiesSet() このキャッシュ Bean のすべてのプロパティが Spring コンテナーによって設定された後、このキャッシュ FactoryBean を初期化します。 |
protected abstract void | applyCacheConfigurers() ユーザー定義のキャッシュ構成を適用します (例: |
protected void | close(org.apache.geode.cache.GemFireCache cache) キャッシュがまだ閉じられていない場合に、 RegionService.close() を呼び出して GemFireCache を閉じるために使用される null セーフメソッド。 |
protected org.apache.geode.cache.GemFireCache | configureHeapPercentages(org.apache.geode.cache.GemFireCache cache)GemFireCache のクリティカルヒープおよびエビクションヒープしきい値をパーセンテージで設定します。 |
protected org.apache.geode.cache.GemFireCache | configureOffHeapPercentages(org.apache.geode.cache.GemFireCache cache)GemFireCache のクリティカルおよびエビクションオフヒープしきい値をパーセンテージで設定します。 |
protected <T> T | configurePdx(AbstractBasicCacheFactoryBean.PdxConfigurer<T> pdxConfigurer)PDX 直列化を使用するようにキャッシュを構成します。 |
void | destroy()Spring コンテナーのシャットダウン時にキャッシュ Bean を破棄します。 |
protected abstract <T extends org.apache.geode.cache.GemFireCache> | doFetchCache() |
protected abstract org.apache.geode.cache.GemFireCache | doGetObject() |
protected ClassSE<? extends org.apache.geode.cache.GemFireCache> | doGetObjectType() デフォルトでは、 GemFireCache ClassSE を返します。 |
protected <T extends org.apache.geode.cache.GemFireCache> | fetchCache()Apache Geode キャッシュファクトリから既存のキャッシュインスタンスを取得します。 |
<T extends org.apache.geode.cache.GemFireCache> | getCache() このキャッシュ FactoryBean によって作成され、構築され、構成され、初期化された GemFireCache インスタンスへの参照を返します。 |
AbstractBasicCacheFactoryBean.CacheFactoryInitializer | getCacheFactoryInitializer() この FactoryBean によって構築されたキャッシュを作成するために使用される Apache Geode キャッシュファクトリを初期化するために、この FactoryBean によって呼び出される AbstractBasicCacheFactoryBean.CacheFactoryInitializer を返します。 |
BooleanSE | getCopyOnRead()GemFireCache に設定された GemFireCache.getCopyOnRead() プロパティの構成を返します。 |
FloatSE | getCriticalHeapPercentage()GemFireCache クリティカルヒープパーセンテージプロパティの構成を取得します。 |
FloatSE | getCriticalOffHeapPercentage()GemFireCache のクリティカルオフヒープパーセンテージプロパティの構成を取得します。 |
FloatSE | getEvictionHeapPercentage()GemFireCache 削除ヒープパーセンテージプロパティの構成を取得します。 |
FloatSE | getEvictionOffHeapPercentage()GemFireCache のエビクションオフヒープパーセンテージプロパティの構成を取得します。 |
org.apache.geode.cache.GemFireCache | getObject() このキャッシュ FactoryBean によって作成された cache object reference を返します。 |
ClassSE<? extends org.apache.geode.cache.GemFireCache> | getObjectType() |
<T extends org.apache.geode.cache.GemFireCache> | getOptionalCache() |
StringSE | getPdxDiskStoreName()PDX メタデータを保存するために使用される Apache Geode DiskStore の nameSE を取得します。 |
BooleanSE | getPdxIgnoreUnreadFields()PDX バイトを ObjectSE に逆直列化するときに、PDX が未読フィールドを無視するかどうかを決定する構成を取得します。 |
BooleanSE | getPdxPersistent() |
BooleanSE | getPdxReadSerialized() |
org.apache.geode.pdx.PdxSerializer | getPdxSerializer() このキャッシュによって使用される構成済みの PdxSerializer への参照を取得し、キャッシュに格納され、分散システム全体に PDX バイトとして分散 / 転送される objectsSE をデ直列化 / 直列化します。 |
int | getPhase()Spring コンテナー内のこのキャッシュ Bean に構成されたライフサイクルフェーズを返します。 |
ListSE<org.apache.geode.cache.TransactionListener> | getTransactionListeners() キャッシュ (トランザクションマネージャー) に登録された、構成済みのアプリケーション定義の TransactionListeners の ListSE を返します。これにより、トランザクションが処理された後 (コミットまたはロールバックされた後)、アプリケーションがトランザクションイベントを受信できるようになります。 |
org.apache.geode.cache.TransactionWriter | getTransactionWriter() トランザクションイベントの処理と取り扱いに使用される構成済みの TransactionWriter を返します。 |
protected ObjectSE | initializeFactory(ObjectSE factory) 指定された CacheFactory または ClientCacheFactory を、構成された AbstractBasicCacheFactoryBean.CacheFactoryInitializer で初期化します。 |
boolean | isClose()Spring コンテナーのシャットダウン時にキャッシュが閉じられるかどうかを決定するために使用されるブール値を返します。 |
boolean | isCopyOnRead()GemFireCache に格納されている objectsSE が読み取り時にコピーされるかどうかを決定します (つまり |
protected boolean | isNotClosed(org.apache.geode.cache.GemFireCache cache)GemFireCache がまだ閉じられていないかどうかを判断します。 |
protected org.apache.geode.cache.GemFireCache | registerTransactionListeners(org.apache.geode.cache.GemFireCache cache) 構成されたアプリケーション定義の TransactionListeners をキャッシュ (トランザクションマネージャー) に登録し、(キャッシュ) トランザクションが処理されるとき (コミットまたはロールバックされるときなど) にトランザクションイベントをリッスンして受信します。 |
protected org.apache.geode.cache.GemFireCache | registerTransactionWriter(org.apache.geode.cache.GemFireCache cache) 設定済みのアプリケーション定義の TransactionWriter をキャッシュ (トランザクションマネージャー) に登録し、トランザクションの結果を変更する (拒否権を行使する) ことを目的としたトランザクションイベントを受信できるようにします。 |
protected void | setCache(org.apache.geode.cache.GemFireCache cache) このキャッシュ FactoryBean によって作成された、構築、構成、初期化された GemFireCache インスタンスへの参照を設定します。 |
void | setCacheFactoryInitializer(AbstractBasicCacheFactoryBean.CacheFactoryInitializer cacheFactoryInitializer) この FactoryBean によって呼び出される AbstractBasicCacheFactoryBean.CacheFactoryInitializer を設定して、この FactoryBean によって構築されるキャッシュを作成するために使用される Apache Geode キャッシュファクトリを初期化します。 |
void | setClose(boolean close)Spring コンテナーのシャットダウン時にキャッシュを閉じるかどうかを決定するために使用されるブール値を設定します。 |
void | setCopyOnRead(BooleanSE copyOnRead)GemFireCache の GemFireCache.getCopyOnRead() プロパティを設定します。 |
void | setCriticalHeapPercentage(FloatSE criticalHeapPercentage)GemFireCache のクリティカルヒープパーセンテージプロパティを設定します。 |
void | setCriticalOffHeapPercentage(FloatSE criticalOffHeapPercentage)GemFireCache のクリティカルオフヒープパーセンテージプロパティを設定します。 |
void | setEvictionHeapPercentage(FloatSE evictionHeapPercentage)GemFireCache の追い出し率プロパティを設定します。 |
void | setEvictionOffHeapPercentage(FloatSE evictionOffHeapPercentage)GemFireCache の追い出しオフヒープ割合プロパティを設定します。 |
void | setPdxDiskStoreName(StringSE pdxDiskStoreName)PDX メタデータを格納するために使用される Apache Geode DiskStore の nameSE を設定します。 |
void | setPdxIgnoreUnreadFields(BooleanSE pdxIgnoreUnreadFields)PDX バイトを ObjectSE に逆直列化する際に、PDX が未読フィールドを無視するかどうかを設定します。 |
void | setPdxPersistent(BooleanSE pdxPersistent) |
void | setPdxReadSerialized(BooleanSE pdxReadSerialized) |
void | setPdxSerializer(org.apache.geode.pdx.PdxSerializer serializer) このキャッシュが使用する PdxSerializer への参照を設定し、キャッシュに格納され、分散システム全体に PDX バイトとして分散 / 転送される objectsSE をデシリアライズ / シリアライズします。 |
protected void | setPhase(int phase)Spring コンテナー内のこのキャッシュ Bean のライフサイクルフェーズを設定します。 |
void | setTransactionListeners(ListSE<org.apache.geode.cache.TransactionListener> transactionListeners) アプリケーションによって実装される ListSE または TransactionListeners を使用してキャッシュ (トランザクションマネージャー) を構成し、トランザクションが処理された後 (コミットまたはロールバックされた後) にトランザクションイベントをリッスンして受信します。 |
void | setTransactionWriter(org.apache.geode.cache.TransactionWriter transactionWriter) アプリケーションによって実装された TransactionWriter を構成して、トランザクションイベントを受信し、拒否などのアクションを実行します。 |
DataAccessException | translateExceptionIfPossible(RuntimeExceptionSE exception) 投げられた Apache Geode RuntimeExceptionSE を、可能であれば Spring の汎用 DataAccessException 階層から対応する ExceptionSE に変換します。 |
getBeanClassLoader, getBeanFactory, getBeanName, getLogger, getOptionalLogger, isDebugLoggingEnabled, isErrorLoggingEnabled, isInfoLoggingEnabled, isSingleton, isWarnLoggingEnabled, logDebug, logDebug, logError, logError, logInfo, logInfo, logWarning, logWarning, newLogger, setBeanClassLoader, setBeanFactory, setBeanNamecloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEprotected void setCache(@Nullable org.apache.geode.cache.GemFireCache cache)
FactoryBean によって作成された、構築、構成、初期化された GemFireCache インスタンスへの参照を設定します。cache - GemFireCache created by this cache FactoryBean。GemFireCache@Nullable public <T extends org.apache.geode.cache.GemFireCache> T getCache()
FactoryBean によって作成され、構築され、構成され、初期化された GemFireCache インスタンスへの参照を返します。T - GemFireCache を継承したパラメーター化された ClassSE 型。GemFireCache created by this cache FactoryBean。GemFireCachepublic <T extends org.apache.geode.cache.GemFireCache> OptionalSE<T> getOptionalCache()
T - GemFireCache を継承したパラメーター化された ClassSE 型。OptionalSE reference to the GemFireCache created by this {cache @link FactoryBean}.GemFireCache, OptionalSE, getCache()public void setCacheFactoryInitializer(@Nullable AbstractBasicCacheFactoryBean.CacheFactoryInitializer cacheFactoryInitializer)
FactoryBean によって呼び出される AbstractBasicCacheFactoryBean.CacheFactoryInitializer を設定して、この FactoryBean によって構築されるキャッシュを作成するために使用される Apache Geode キャッシュファクトリを初期化します。cacheFactoryInitializer - AbstractBasicCacheFactoryBean.CacheFactoryInitializer called to initialize the cache factory.org.springframework.data.gemfire.CacheFactoryBean.CacheFactoryInitializer@Nullable public AbstractBasicCacheFactoryBean.CacheFactoryInitializer getCacheFactoryInitializer()
FactoryBean によって構築されたキャッシュを作成するために使用される Apache Geode キャッシュファクトリを初期化するために、この FactoryBean によって呼び出される AbstractBasicCacheFactoryBean.CacheFactoryInitializer を返します。AbstractBasicCacheFactoryBean.CacheFactoryInitializer called to initialize the cache factory.org.springframework.data.gemfire.CacheFactoryBean.CacheFactoryInitializerpublic void setClose(boolean close)
close - boolean value used to determine whether the cache will be closed on shutdown of the Spring container.public boolean isClose()
public void setCopyOnRead(@Nullable BooleanSE copyOnRead)
GemFireCache の GemFireCache.getCopyOnRead() プロパティを設定します。@Nullable public BooleanSE getCopyOnRead()
GemFireCache に設定された GemFireCache.getCopyOnRead() プロパティの構成を返します。public boolean isCopyOnRead()
objectsSE stored in the GemFireCache are copied when read (i.e. Region.get(Object). Defaults to false.objectsSE stored in the GemFireCache are copied when read (i.e. Region.get(Object).getCopyOnRead()public void setCriticalHeapPercentage(@Nullable FloatSE criticalHeapPercentage)
GemFireCache のクリティカルヒープパーセンテージプロパティを設定します。criticalHeapPercentage - FloatSE value specifying the configuration for the GemFireCache critical heap percentage.public FloatSE getCriticalHeapPercentage()
GemFireCache クリティカルヒープパーセンテージプロパティの構成を取得します。FloatSE value specifying the configuration for the GemFireCache critical heap percentage.public void setCriticalOffHeapPercentage(@Nullable FloatSE criticalOffHeapPercentage)
GemFireCache のクリティカルオフヒープパーセンテージプロパティを設定します。criticalOffHeapPercentage - FloatSE value specifying the configuration for the GemFireCache critical off-heap percentage.public FloatSE getCriticalOffHeapPercentage()
GemFireCache のクリティカルオフヒープパーセンテージプロパティの構成を取得します。FloatSE value specifying the configuration for the GemFireCache critical off-heap percentage.public void setEvictionHeapPercentage(FloatSE evictionHeapPercentage)
GemFireCache の追い出し率プロパティを設定します。evictionHeapPercentage - FloatSE value specifying the configuration for the GemFireCache eviction heap percentage.public FloatSE getEvictionHeapPercentage()
GemFireCache 削除ヒープパーセンテージプロパティの構成を取得します。FloatSE value specifying the configuration for the GemFireCache eviction heap percentage.public void setEvictionOffHeapPercentage(FloatSE evictionOffHeapPercentage)
GemFireCache の追い出しオフヒープ割合プロパティを設定します。evictionOffHeapPercentage - FloatSE value specifying the configuration for the GemFireCache eviction off-heap percentage.public FloatSE getEvictionOffHeapPercentage()
GemFireCache のエビクションオフヒープパーセンテージプロパティの構成を取得します。FloatSE value specifying the configuration for the GemFireCache eviction off-heap percentage.public org.apache.geode.cache.GemFireCache getObject()
throws ExceptionSEFactoryBean によって作成された cache object reference を返します。FactoryBean<org.apache.geode.cache.GemFireCache> 内の getObject cache object reference created by this cache FactoryBean。ExceptionSEFactoryBean.getObject(), GemFireCache, doGetObject(), getCache()protected abstract org.apache.geode.cache.GemFireCache doGetObject()
GemFireCache インスタンス。GemFireCache, getObject()public ClassSE<? extends org.apache.geode.cache.GemFireCache> getObjectType()
FactoryBean<org.apache.geode.cache.GemFireCache> 内の getObjectType typeSE of GemFireCache created by this cache FactoryBean。FactoryBean.getObjectType(), doGetObjectType()protected ClassSE<? extends org.apache.geode.cache.GemFireCache> doGetObjectType()
GemFireCache ClassSE を返します。GemFireCache ClassSE です。GemFireCache, getObjectType(), ClassSEpublic void setPdxDiskStoreName(@Nullable StringSE pdxDiskStoreName)
DiskStore の nameSE を設定します。pdxDiskStoreName - nameSE for the PDX DiskStore.CacheFactory.setPdxDiskStore(String), DiskStore.getName()@Nullable public StringSE getPdxDiskStoreName()
DiskStore の nameSE を取得します。nameSE of the PDX DiskStore.GemFireCache.getPdxDiskStore(), DiskStore.getName()public void setPdxIgnoreUnreadFields(@Nullable BooleanSE pdxIgnoreUnreadFields)
ObjectSE . Defaults to false.pdxIgnoreUnreadFields - BooleanSE value controlling ignoring unread fields.CacheFactory.setPdxIgnoreUnreadFields(boolean)@Nullable public BooleanSE getPdxIgnoreUnreadFields()
ObjectSE . Defaults to false.BooleanSE value controlling ignoring unread fields.GemFireCache.getPdxIgnoreUnreadFields()public void setPdxReadSerialized(@Nullable BooleanSE pdxReadSerialized)
Region.get(Object) が呼び出されたときに、Apache Geode cache に PDX として格納された objectsSE が PDX バイトとして読み戻されるか、(逆直列化されて)ObjectSE として読み戻されるかを設定します。pdxReadSerialized - BooleanSE value controlling the PDX read serialized function.CacheFactory.setPdxReadSerialized(boolean)@Nullable public BooleanSE getPdxReadSerialized()
cache に PDX として保存された objectsSE を、Region.get(Object) が呼び出されたときに PDX バイトとして読み戻すか、(逆直列化されて) ObjectSE として読み戻すかを決定する構成を取得します。BooleanSE value controlling the PDX read serialized function.GemFireCache.getPdxReadSerialized()public void setPdxSerializer(@Nullable org.apache.geode.pdx.PdxSerializer serializer)
PdxSerializer への参照を設定し、キャッシュに格納され、分散システム全体に PDX バイトとして分散 / 転送される objectsSE をデシリアライズ / シリアライズします。serializer - PdxSerializer used by this cache to de/serialize objectsSE as PDX.CacheFactory.setPdxSerializer(PdxSerializer), PdxSerializer@Nullable public org.apache.geode.pdx.PdxSerializer getPdxSerializer()
PdxSerializer への参照を取得し、キャッシュに格納され、分散システム全体に PDX バイトとして分散 / 転送される objectsSE をデ直列化 / 直列化します。PdxSerializer への参照。GemFireCache.getPdxSerializer(), PdxSerializerprotected void setPhase(int phase)
phase - Integer.TYPESE value specifying the lifecycle phase for this cache bean in the Spring container.Phased.getPhase()public int getPhase()
Phased 内の getPhase Integer.TYPESE used specifying the lifecycle phase for this cache bean in the Spring container.Phased.getPhase()public void setTransactionListeners(ListSE<org.apache.geode.cache.TransactionListener> transactionListeners)
ListSE または TransactionListeners を使用してキャッシュ (トランザクションマネージャー) を構成し、トランザクションが処理された後 (コミットまたはロールバックされた後) にトランザクションイベントをリッスンして受信します。transactionListeners - ListSE of application-defined TransactionListeners registered with the cache to listen for and receive transaction events.TransactionListenerpublic ListSE<org.apache.geode.cache.TransactionListener> getTransactionListeners()
TransactionListeners の ListSE を返します。これにより、トランザクションが処理された後 (コミットまたはロールバックされた後)、アプリケーションがトランザクションイベントを受信できるようになります。ListSE of application-defined TransactionListeners registered with the cache (transaction manager) to listen for and receive transaction events.TransactionListenerpublic void setTransactionWriter(@Nullable org.apache.geode.cache.TransactionWriter transactionWriter)
TransactionWriter を構成して、トランザクションイベントを受信し、拒否などのアクションを実行します。transactionWriter - TransactionWriter receiving transaction events.TransactionWriter@Nullable public org.apache.geode.cache.TransactionWriter getTransactionWriter()
TransactionWriter を返します。TransactionWriter。TransactionWriterpublic void afterPropertiesSet()
throws ExceptionSEFactoryBean を初期化します。InitializingBean 内の afterPropertiesSet ExceptionSE - 初期化に失敗した場合。InitializingBean.afterPropertiesSet(), applyCacheConfigurers()protected abstract void applyCacheConfigurers()
ClientCacheConfigurer or PeerCacheConfigurer ) to this cache FactoryBean before cache construction, configuration and initialization.protected void close(@Nullable org.apache.geode.cache.GemFireCache cache)
RegionService.close() を呼び出して GemFireCache を閉じるために使用される null セーフメソッド。cache - GemFireCache が終了します。RegionService.isClosed(), RegionService.close(), isNotClosed(GemFireCache)protected boolean isNotClosed(@Nullable org.apache.geode.cache.GemFireCache cache)
GemFireCache がまだ閉じられていないかどうかを判断します。cache - 評価する GemFireCache。GemFireCache is not yet closed.GemFireCachepublic void destroy()
DisposableBean 内の destroy DisposableBean.destroy(), close(GemFireCache), fetchCache(), isClose()@NonNull protected org.apache.geode.cache.GemFireCache configureHeapPercentages(@NonNull org.apache.geode.cache.GemFireCache cache)
GemFireCache のクリティカルヒープおよびエビクションヒープしきい値をパーセンテージで設定します。cache - GemFireCache to configure the critical and eviction heap thresholds; must not be null.GemFireCache。IllegalArgumentExceptionSE - if the critical or eviction heap thresholds are not valid percentages.ResourceManager.setCriticalHeapPercentage(float)、ResourceManager.setEvictionHeapPercentage(float)、ResourceManager、GemFireCache.getResourceManager()、GemFireCache@NonNull protected org.apache.geode.cache.GemFireCache configureOffHeapPercentages(@NonNull org.apache.geode.cache.GemFireCache cache)
GemFireCache のクリティカルおよびエビクションオフヒープしきい値をパーセンテージで設定します。cache - GemFireCache to configure the critical and eviction off-heap thresholds; must not be null.GemFireCache。IllegalArgumentExceptionSE - if the critical or eviction off-heap thresholds are not valid percentages.ResourceManager.setCriticalOffHeapPercentage(float)、ResourceManager.setEvictionOffHeapPercentage(float)、ResourceManager、GemFireCache.getResourceManager()、GemFireCacheprotected <T> T configurePdx(AbstractBasicCacheFactoryBean.PdxConfigurer<T> pdxConfigurer)
pdxConfigurer - AbstractBasicCacheFactoryBean.PdxConfigurer used to configure the cache with PDX serialization.AbstractBasicCacheFactoryBean.PdxConfigurer.getTarget()protected <T extends org.apache.geode.cache.GemFireCache> T fetchCache()
T - GemFireCache を継承したパラメーター化された ClassSE 型。org.apache.geode.cache.CacheClosedException - if an existing cache instance does not exist.ClientCacheFactory.getAnyInstance()、CacheFactory.getAnyInstance()、GemFireCache, doFetchCache(), getCache()protected abstract <T extends org.apache.geode.cache.GemFireCache> T doFetchCache()
getCache() によって返された GemFireCache 参照が null の場合、fetchCache() によって呼び出されます。このメソッドは通常、Spring アプリケーションで宣言および使用される GemFireCache 型に応じて、CacheFactory.getAnyInstance() または ClientCacheFactory.getAnyInstance() を呼び出すことによって実装されます。T - GemFireCache を継承したパラメーター化された ClassSE 型。GemFireCache インスタンスへの (既存の) 参照。org.apache.geode.cache.CacheClosedException - if a GemFireCache reference does not exist.fetchCache()@Nullable protected ObjectSE initializeFactory(ObjectSE factory)
CacheFactory または ClientCacheFactory を、構成された AbstractBasicCacheFactoryBean.CacheFactoryInitializer で初期化します。factory - 初期化するには CacheFactory または ClientCacheFactory を使用します。CacheFactory または ClientCacheFactory。org.springframework.data.gemfire.CacheFactoryBean.CacheFactoryInitializer#initialize(Object)、ClientCacheFactory、CacheFactory, getCacheFactoryInitializer()@NonNull protected org.apache.geode.cache.GemFireCache registerTransactionListeners(@NonNull org.apache.geode.cache.GemFireCache cache)
TransactionListeners をキャッシュ (トランザクションマネージャー) に登録し、(キャッシュ) トランザクションが処理されるとき (コミットまたはロールバックされるときなど) にトランザクションイベントをリッスンして受信します。cache - GemFireCache used to register the configured, application-defined TransactionListeners; must not be null.GemFireCache。GemFireCache.getCacheTransactionManager()、CacheTransactionManager.addListener(TransactionListener)、CacheTransactionManager、TransactionListener、GemFireCache@NonNull protected org.apache.geode.cache.GemFireCache registerTransactionWriter(@NonNull org.apache.geode.cache.GemFireCache cache)
TransactionWriter をキャッシュ (トランザクションマネージャー) に登録し、トランザクションの結果を変更する (拒否権を行使する) ことを目的としたトランザクションイベントを受信できるようにします。cache - GemFireCache used to register the configured, application-defined TransactionWriter, must not be null.GemFireCache。GemFireCache.getCacheTransactionManager()、CacheTransactionManager.setWriter(TransactionWriter)、CacheTransactionManager、TransactionWriter、GemFireCache@Nullable public DataAccessException translateExceptionIfPossible(@Nullable RuntimeExceptionSE exception)
RuntimeExceptionSE を、可能であれば Spring の汎用 DataAccessException 階層から対応する ExceptionSE に変換します。PersistenceExceptionTranslator 内の translateExceptionIfPossible exception - the Apache Geode RuntimeExceptionSE to translate.DataAccessException or null if the Apache Geode RuntimeExceptionSE could not be translated.PersistenceExceptionTranslator.translateExceptionIfPossible(RuntimeException), DataAccessExceptionCopyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.