All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.backendless.rt.messaging.Channel Maven / Gradle / Ivy

There is a newer version: 7.0-alpha
Show newest version
package com.backendless.rt.messaging;

import com.backendless.async.callback.AsyncCallback;
import com.backendless.rt.command.Command;
import com.backendless.rt.RTListener;
import com.backendless.rt.users.UserStatusResponse;

public interface Channel extends RTListener
{
  void join( );

  void leave();

  boolean isJoined();

  void addJoinListener( AsyncCallback callback );

  void removeJoinListener( AsyncCallback callback );

  //----------------------------------

  void addMessageListener( AsyncCallback callback );

   void addMessageListener( AsyncCallback callback, Class clazz );

  void addMessageListener( String selector, AsyncCallback callback );

   void addMessageListener( String selector, AsyncCallback callback, Class clazz );

  void addMessageListener( String selector, final MessageInfoCallback callback );

  void addMessageListener( final MessageInfoCallback callback );

  void removeMessageListeners( String selector );

  void removeMessageListener( AsyncCallback callback );

  void removeMessageListeners( String selector, AsyncCallback callback );

  void removeAllMessageListeners();

  //----------------------------------

   void addCommandListener( Class dataType, AsyncCallback> callback );

  void addCommandListener( AsyncCallback> callback );

   void sendCommand( String type, Object data );

   void sendCommand( String type, Object data, AsyncCallback callback );

  void removeCommandListener( AsyncCallback callback );

  //----------------------------------

  void addUserStatusListener( AsyncCallback callback );

  void removeUserStatusListeners();

  void removeUserStatusListener( AsyncCallback callback );
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy