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
Modifier and TypeClassDescriptionclass
class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
void
Event generated on the server (e.g.void
Failed client requestvoid
A client has logged invoid
A client has logged outvoid
setup()
void
success
(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:SessionListener
Successfully processed client request- Specified by:
success
in interfaceSessionListener
-
event
Description copied from interface:SessionListener
Event generated on the server (e.g. by a bot)- Specified by:
event
in interfaceSessionListener
-
failure
Description copied from interface:SessionListener
Failed client request- Specified by:
failure
in interfaceSessionListener
-
login
Description copied from interface:SessionListener
A client has logged in- Specified by:
login
in interfaceSessionListener
-
logout
Description copied from interface:SessionListener
A client has logged out- Specified by:
logout
in interfaceSessionListener
-