Package org.vrspace.server.connect
Class ElasticSearchSessionListener
java.lang.Object
org.vrspace.server.connect.ElasticSearchSessionListener
- All Implemented Interfaces:
SessionListener
@Component
@ConditionalOnProperty("org.vrspace.server.session-listener.es.url")
public class ElasticSearchSessionListener
extends Object
implements SessionListener
ElasticSearch session listener forwards all events to an ES node,
asynchronously.
https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/index.html
- Author:
- joe
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()voidEvent generated on the server (e.g.voidFailed client requestvoidA client has logged invoidA client has logged outvoidsetup()voidsuccess(ClientRequest request) Successfully processed client request
-
Constructor Details
-
ElasticSearchSessionListener
public ElasticSearchSessionListener()
-
-
Method Details
-
setup
@PostConstruct public void setup() -
destroy
@PreDestroy public void destroy() -
success
Description copied from interface:SessionListenerSuccessfully processed client request- Specified by:
successin interfaceSessionListener
-
event
Description copied from interface:SessionListenerEvent generated on the server (e.g. by a bot)- Specified by:
eventin interfaceSessionListener
-
failure
Description copied from interface:SessionListenerFailed client request- Specified by:
failurein interfaceSessionListener
-
login
Description copied from interface:SessionListenerA client has logged in- Specified by:
loginin interfaceSessionListener
-
logout
Description copied from interface:SessionListenerA client has logged out- Specified by:
logoutin interfaceSessionListener
-