Class CoherenceSessionCreatedEventHandler
java.lang.Object
com.oracle.coherence.spring.session.events.CoherenceSessionCreatedEventHandler
- All Implemented Interfaces:
- com.tangosol.net.events.EventDispatcherAwareInterceptor<com.tangosol.net.events.partition.cache.EntryEvent<String,,- org.springframework.session.MapSession>> - com.tangosol.net.events.EventInterceptor<com.tangosol.net.events.partition.cache.EntryEvent<String,- org.springframework.session.MapSession>> 
public class CoherenceSessionCreatedEventHandler
extends Object
implements com.tangosol.net.events.EventDispatcherAwareInterceptor<com.tangosol.net.events.partition.cache.EntryEvent<String,org.springframework.session.MapSession>> 
Custom Event that handles the creation of a session. The handled event is then propagated as a Spring application
 event via Spring's 
ApplicationEventPublisher.- Since:
- 3.0
- Author:
- Gunnar Hillert
- 
Constructor SummaryConstructorsConstructorDescriptionCoherenceSessionCreatedEventHandler(ApplicationEventPublisher eventPublisher) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidintroduceEventDispatcher(String sIdentifier, com.tangosol.net.events.EventDispatcher dispatcher) voidonEvent(com.tangosol.net.events.partition.cache.EntryEvent<String, org.springframework.session.MapSession> event) protected StringremoveScope(String serviceName) Remove the scope prefix from a specified service name.voidsetCacheName(String cacheName) voidsetScopeName(String scopeName) voidsetServiceName(String serviceName) 
- 
Constructor Details- 
CoherenceSessionCreatedEventHandler
 
- 
- 
Method Details- 
introduceEventDispatcherpublic void introduceEventDispatcher(String sIdentifier, com.tangosol.net.events.EventDispatcher dispatcher) - Specified by:
- introduceEventDispatcherin interface- com.tangosol.net.events.EventDispatcherAwareInterceptor<com.tangosol.net.events.partition.cache.EntryEvent<String,- org.springframework.session.MapSession>> 
 
- 
onEventpublic void onEvent(com.tangosol.net.events.partition.cache.EntryEvent<String, org.springframework.session.MapSession> event) - Specified by:
- onEventin interface- com.tangosol.net.events.EventInterceptor<com.tangosol.net.events.partition.cache.EntryEvent<String,- org.springframework.session.MapSession>> 
 
- 
removeScopeRemove the scope prefix from a specified service name.- Parameters:
- serviceName- the service name to remove scope prefix from
- Returns:
- service name with scope prefix removed
 
- 
setCacheName
- 
setScopeName
- 
setServiceName
 
-