/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
- /* $Id: SessionListener.java 722248 2008-12-01 21:48:53Z sccomer $
- *
- * Copyright 2007-2008 Cisco Systems Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy
- * of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations
- * under the License.
- */
- package etch.util.core.io;
- /**
- * Interface used to deliver new connections to the session from the listener.
- * @param <T> the type of the connection for the session.
- */
- public interface SessionListener<T> extends Session
- {
- /**
- * Delivers a socket to the session from the listener.
- * @param connection
- * @throws Exception
- */
- public void sessionAccepted( T connection ) throws Exception;
- }