Package org.infinispan.spring.session
Class AbstractApplicationPublisherBridge
- java.lang.Object
-
- org.infinispan.spring.session.AbstractApplicationPublisherBridge
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationEventPublisherAware
- Direct Known Subclasses:
EmbeddedApplicationPublishedBridge
,RemoteApplicationPublishedBridge
public abstract class AbstractApplicationPublisherBridge extends Object implements org.springframework.context.ApplicationEventPublisherAware
A bridge for passing events between Infinispan (both embedded and remote) and Spring.- Since:
- 9.0
- Author:
- Sebastian Ćaskawiec
-
-
Field Summary
Fields Modifier and Type Field Description protected SpringCache
eventSource
protected Optional<org.springframework.context.ApplicationEventPublisher>
springEventsPublisher
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractApplicationPublisherBridge(SpringCache eventSource)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
emitSessionCreatedEvent(String sessionId)
protected void
emitSessionDeletedEvent(String sessionId)
protected void
emitSessionDestroyedEvent(String sessionId)
protected void
emitSessionExpiredEvent(String sessionId)
protected abstract void
registerListener()
void
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
abstract void
unregisterListener()
-
-
-
Field Detail
-
eventSource
protected final SpringCache eventSource
-
springEventsPublisher
protected Optional<org.springframework.context.ApplicationEventPublisher> springEventsPublisher
-
-
Constructor Detail
-
AbstractApplicationPublisherBridge
protected AbstractApplicationPublisherBridge(SpringCache eventSource)
-
-
Method Detail
-
registerListener
protected abstract void registerListener()
-
unregisterListener
public abstract void unregisterListener()
-
emitSessionCreatedEvent
protected void emitSessionCreatedEvent(String sessionId)
-
emitSessionExpiredEvent
protected void emitSessionExpiredEvent(String sessionId)
-
emitSessionDestroyedEvent
protected void emitSessionDestroyedEvent(String sessionId)
-
emitSessionDeletedEvent
protected void emitSessionDeletedEvent(String sessionId)
-
setApplicationEventPublisher
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
- Specified by:
setApplicationEventPublisher
in interfaceorg.springframework.context.ApplicationEventPublisherAware
-
-