keycloak
公開メンバ関数 | 非公開メンバ関数 | 非公開変数類 | 全メンバ一覧
org.keycloak.cluster.infinispan.InfinispanNotificationsManager.HotRodListener クラス
org.keycloak.cluster.infinispan.InfinispanNotificationsManager.HotRodListener 連携図
Collaboration graph

公開メンバ関数

 HotRodListener (RemoteCache< Object, Object > remoteCache)
 
void created (ClientCacheEntryCreatedEvent event)
 
void updated (ClientCacheEntryModifiedEvent event)
 
void removed (ClientCacheEntryRemovedEvent event)
 

非公開メンバ関数

void hotrodEventReceived (String key)
 

非公開変数類

final RemoteCache< Object, Object > remoteCache
 

詳解

構築子と解体子

◆ HotRodListener()

org.keycloak.cluster.infinispan.InfinispanNotificationsManager.HotRodListener.HotRodListener ( RemoteCache< Object, Object >  remoteCache)
inline
203  {
204  this.remoteCache = remoteCache;
205  }
final RemoteCache< Object, Object > remoteCache
Definition: InfinispanNotificationsManager.java:201

関数詳解

◆ created()

void org.keycloak.cluster.infinispan.InfinispanNotificationsManager.HotRodListener.created ( ClientCacheEntryCreatedEvent  event)
inline
209  {
210  String key = event.getKey().toString();
211  hotrodEventReceived(key);
212  }
void hotrodEventReceived(String key)
Definition: InfinispanNotificationsManager.java:229

◆ hotrodEventReceived()

void org.keycloak.cluster.infinispan.InfinispanNotificationsManager.HotRodListener.hotrodEventReceived ( String  key)
inlineprivate
229  {
230  // TODO: Look at CacheEventConverter stuff to possibly include value in the event and avoid additional remoteCache request
231  try {
232  listenersExecutor.submit(() -> {
233 
234  Object value = remoteCache.get(key);
235  eventReceived(key, (Serializable) value);
236 
237  });
238  } catch (RejectedExecutionException ree) {
239  logger.errorf("Rejected submitting of the event for key: %s. Value: %s, Server going to shutdown or pool exhausted. Pool: %s", key, workCache.get(key), listenersExecutor.toString());
240  throw ree;
241  }
242  }
void eventReceived(String key, Serializable obj)
Definition: InfinispanNotificationsManager.java:246
final ExecutorService listenersExecutor
Definition: InfinispanNotificationsManager.java:79
final Cache< String, Serializable > workCache
Definition: InfinispanNotificationsManager.java:71
final RemoteCache< Object, Object > remoteCache
Definition: InfinispanNotificationsManager.java:201
static final Logger logger
Definition: InfinispanNotificationsManager.java:65

◆ removed()

void org.keycloak.cluster.infinispan.InfinispanNotificationsManager.HotRodListener.removed ( ClientCacheEntryRemovedEvent  event)
inline
223  {
224  String key = event.getKey().toString();
225  taskFinished(key, true);
226  }
void taskFinished(String taskKey, boolean success)
Definition: InfinispanNotificationsManager.java:285

◆ updated()

void org.keycloak.cluster.infinispan.InfinispanNotificationsManager.HotRodListener.updated ( ClientCacheEntryModifiedEvent  event)
inline
216  {
217  String key = event.getKey().toString();
218  hotrodEventReceived(key);
219  }
void hotrodEventReceived(String key)
Definition: InfinispanNotificationsManager.java:229

メンバ詳解

◆ remoteCache

final RemoteCache<Object, Object> org.keycloak.cluster.infinispan.InfinispanNotificationsManager.HotRodListener.remoteCache
private

このクラス詳解は次のファイルから抽出されました: