summaryrefslogtreecommitdiff
path: root/java/demo/Glacier2/callback/SessionI.java
blob: 66c2bba8c064c2c7d4feb99998d676b5ea1e50b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// **********************************************************************
//
// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************

public final class SessionI extends Glacier2._SessionDisp
{
    SessionI(String userId)
    {
        _userId = userId;
    }

    public void
    destroy(Ice.Current current)
    {
        System.out.println("destroying session for user `" + _userId + "'");
        current.adapter.remove(current.id);
    }

    final private String _userId;
}