You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ClientConnector.java 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. @VaadinApache2LicenseForJavaFiles@
  3. */
  4. package com.vaadin.terminal.gwt.server;
  5. import java.util.List;
  6. import com.vaadin.terminal.gwt.client.Connector;
  7. import com.vaadin.terminal.gwt.client.communication.SharedState;
  8. /**
  9. * Interface implemented by all connectors that are capable of communicating
  10. * with the client side
  11. *
  12. * @author Vaadin Ltd
  13. * @version @VERSION@
  14. * @since 7.0.0
  15. *
  16. */
  17. public interface ClientConnector extends Connector, RpcTarget {
  18. /**
  19. * Returns the list of pending server to client RPC calls and clears the
  20. * list.
  21. *
  22. * @return an unmodifiable ordered list of pending server to client method
  23. * calls (not null)
  24. *
  25. * @since 7.0
  26. */
  27. public List<ClientMethodInvocation> retrievePendingRpcCalls();
  28. /**
  29. * Checks if the communicator is enabled. An enabled communicator is allowed
  30. * to receive messages from its counter-part.
  31. *
  32. * @return true if the connector can receive messages, false otherwise
  33. */
  34. public boolean isConnectorEnabled();
  35. /**
  36. * Returns the type of the shared state for this connector
  37. *
  38. * @return The type of the state. Must never return null.
  39. */
  40. public Class<? extends SharedState> getStateType();
  41. }