Examples of DisconnectListener


Examples of com.corundumstudio.socketio.listener.DisconnectListener

        return OnDisconnect.class;
    }

    @Override
    public void addListener(Namespace namespace, final Object object, final Method method, Annotation annotation) {
        namespace.addDisconnectListener(new DisconnectListener() {
            @Override
            public void onDisconnect(SocketIOClient client) {
                try {
                    method.invoke(object, client);
                } catch (Exception e) {

Examples of com.corundumstudio.socketio.listener.DisconnectListener

        return OnDisconnect.class;
    }

    @Override
    public void addListener(Namespace namespace, final Object object, final Class clazz, final Method method) {
        namespace.addDisconnectListener(new DisconnectListener() {
            @Override
            public void onDisconnect(SocketIOClient client) {
                try {
                    method.invoke(object, client);
                } catch (Exception e) {

Examples of com.corundumstudio.socketio.listener.DisconnectListener

        return OnDisconnect.class;
    }

    @Override
    public void addListener(Namespace namespace, final Object object, final Class clazz, final Method method) {
        namespace.addDisconnectListener(new DisconnectListener() {
            @Override
            public void onDisconnect(SocketIOClient client) {
                try {
                    method.invoke(object, client);
                } catch (Exception e) {

Examples of com.corundumstudio.socketio.listener.DisconnectListener

        return OnDisconnect.class;
    }

    @Override
    public void addListener(Namespace namespace, final Object object, final Method method, Annotation annotation) {
        namespace.addDisconnectListener(new DisconnectListener() {
            @Override
            public void onDisconnect(SocketIOClient client) {
                try {
                    method.invoke(object, client);
                } catch (InvocationTargetException e) {

Examples of com.digitaldan.jomnilinkII.DisconnectListener

        } else {

          /*
           * If we get disconnected then do nothing
           */
          c.addDisconnectListener(new DisconnectListener() {
            @Override
            public void notConnectedEvent(Exception e) {
              logger.error("OmniConnectionThread was disconnected, will try again", e);
              connected = false;
            }

Examples of listeners.DisconnectListener

          l.addListener(new RoomListener(nc));
          l.addListener(new ServerListener(nc));
          l.addListener(new UserListener(nc));
          l.addListener(new MessageListener(nc));
          l.addListener(new ScriptListener(nc));
          l.addListener(new DisconnectListener(nc));
          // connecting to server
          try {
            attemptToConnect(cs);
          } catch (Exception e) {
            Logger.getLogger("log.error").error(
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.