1 // $Id: IHandler.java 1223 2007-05-08 06:18:30Z grro $ 2 /* 3 * Copyright (c) xsocket.org, 2006 - 2007. All rights reserved. 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public 7 * License as published by the Free Software Foundation; either 8 * version 2.1 of the License, or (at your option) any later version. 9 * 10 * This library is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public 16 * License along with this library; if not, write to the Free Software 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 * 19 * Please refer to the LGPL license at: http://www.gnu.org/copyleft/lesser.txt 20 * The latest copy of this software may be found on http://www.xsocket.org/ 21 */ 22 package org.xsocket.stream; 23 24 import org.xsocket.Synchronized; 25 26 27 28 /** 29 * A marker interface for a handler <br><br> 30 * 31 * Specific handlers defines <code>on<event></code> callback methods. <br> 32 * By default the callback methods are <i>connection-scoped</i> synchronized. For the <i>same</i> 33 * connection instance the callback method will be called in a serialized manner. 34 * The synchronization behavior of handler can be controlled by the {@link Synchronized} 35 * annotation. 36 * 37 * @author grro@xsocket.org 38 */ 39 public interface IHandler { 40 41 } 42