ICE 3.4.2
[php5-ice-freebsdport.git] / java / test / Ice / background / Acceptor.java
blobfe3567b4ac44730339661d028ab0503eb47dd95c
1 // **********************************************************************
2 //
3 // Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
4 //
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
7 //
8 // **********************************************************************
10 package test.Ice.background;
12 class Acceptor implements IceInternal.Acceptor
14 public java.nio.channels.ServerSocketChannel
15 fd()
17 return _acceptor.fd();
20 public void
21 close()
23 _acceptor.close();
26 public void
27 listen()
29 _acceptor.listen();
32 public IceInternal.Transceiver
33 accept()
35 return new Transceiver(_configuration, _acceptor.accept());
38 public String
39 toString()
41 return _acceptor.toString();
44 Acceptor(Configuration configuration, IceInternal.Acceptor acceptor)
46 _configuration = configuration;
47 _acceptor = acceptor;
50 protected synchronized void
51 finalize()
52 throws Throwable
54 super.finalize();
57 final private IceInternal.Acceptor _acceptor;
58 private Configuration _configuration;