PageRenderTime 26ms CodeModel.GetById 12ms RepoModel.GetById 1ms app.codeStats 0ms

/branches/sr-1.0.2.1/util/src/main/java/etch/util/core/io/SessionListener.java

#
Java | 32 lines | 5 code | 2 blank | 25 comment | 0 complexity | e59843413e32f374951c0951a5a3279d MD5 | raw file
Possible License(s): Apache-2.0
  1. /* $Id: SessionListener.java 722248 2008-12-01 21:48:53Z sccomer $
  2. *
  3. * Copyright 2007-2008 Cisco Systems Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy
  7. * of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations
  15. * under the License.
  16. */
  17. package etch.util.core.io;
  18. /**
  19. * Interface used to deliver new connections to the session from the listener.
  20. * @param <T> the type of the connection for the session.
  21. */
  22. public interface SessionListener<T> extends Session
  23. {
  24. /**
  25. * Delivers a socket to the session from the listener.
  26. * @param connection
  27. * @throws Exception
  28. */
  29. public void sessionAccepted( T connection ) throws Exception;
  30. }