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

com.backendless.rt.rso.SharedObject Maven / Gradle / Ivy

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

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

import java.util.Collection;

public interface SharedObject extends RTListener
{
  void addConnectListener( AsyncCallback callback );

  void removeConnectListener( AsyncCallback callback );

  void removeConnectListeners();

  void addChangesListener( AsyncCallback callback );

  void removeChangesListener( AsyncCallback callback );

  void removeChangesListeners();

  void addClearListener( AsyncCallback callback );

  void removeClearListener( AsyncCallback callback );

  void removeClearListeners();

  void addCommandListener( AsyncCallback> callback );

   void addCommandListener( Class dataType, AsyncCallback> callback );

  void removeCommandListener( AsyncCallback callback );

  void removeCommandListeners();

  void addUserStatusListener( AsyncCallback callback );

  void removeUserStatusListener( AsyncCallback callback );

  void removeUserStatusListeners();

  void set( String key, Object value, AsyncCallback callback );

  void set( String key, Object value );

  void get( String key, AsyncCallback callback );

   void get( String key, Class dataType, AsyncCallback callback );

  void clear( AsyncCallback callback );

  void clear();

  void sendCommand( String type, Object value );

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

  void invoke( String methodName, Object... args );

  void invoke( String methodName, Object[] args, AsyncCallback callback );

  void invoke( String methodName, Object[] args, Collection target, AsyncCallback callback );

  void setInvocationTarget( Object target );

  void setInvocationTarget( Object target, AsyncCallback callback );

  void connect();

  void disconnect();

  boolean isConnected();
}