Example usage for org.springframework.integration.ip.tcp.connection TcpConnectionCloseEvent getConnectionId

List of usage examples for org.springframework.integration.ip.tcp.connection TcpConnectionCloseEvent getConnectionId

Introduction

In this page you can find the example usage for org.springframework.integration.ip.tcp.connection TcpConnectionCloseEvent getConnectionId.

Prototype

public String getConnectionId() 

Source Link

Usage

From source file:ru.jts_dev.authserver.service.AuthSessionService.java

@EventListener
private void tcpConnectionEventListener(TcpConnectionCloseEvent event) {
    AuthSession session = sessions.remove(event.getConnectionId());
    idPool.release(session.getSessionId());
}

From source file:ru.jts_dev.gameserver.service.PlayerService.java

@EventListener
private void tcpConnectionEventListener(final TcpConnectionCloseEvent event) {
    final GameCharacter character = characters.remove(event.getConnectionId());
    if (character != null) {
        gameCharacterRepository.save(character);
    }//from w ww  . j a v a  2s.  c  o m
}

From source file:ru.jts_dev.gameserver.service.GameSessionService.java

@EventListener
private void tcpConnectionEventListener(TcpConnectionCloseEvent event) {
    sessions.remove(event.getConnectionId());
    accounts.remove(event.getConnectionId());
}