Package org.eclipse.emf.cdo.session.remote

# Schnittstelle CDORemoteSession

Alle Superschnittstellen:
  `Comparable<CDORemoteSession>`

Alle bekannten Unterschnittstellen:
  `InternalCDORemoteSession`

public interface CDORemoteSession extends Comparable<CDORemoteSession>
Represents a remote session that is connected to the same repository as the `local session` that the `remote session manager` points to.

Seit:
  2.0
Autor:
  Eike Stepper
No Implement
  This interface is not intended to be implemented by clients.
No Extend
  This interface is not intended to be extended by clients.

## Methodenübersicht

Modifizierer und Typ
Methode
Beschreibung
`CDORemoteSessionManager`
`getManager()`
Returns the remote session manager that manages this remote session.
`int`
`getSessionID()`
Returns the session ID of this remote session.
`String`
`getUserID()`
Returns the user ID of this remote session.
`boolean`
`isSubscribed()`
Returns `true` if this remote session is subscribed to changes in the set of remote sessions and delivers `custom data events`, `false` otherwise.
`boolean`
`sendMessage(CDORemoteSessionMessage message)`
Sends a unicast message to this remote session if it is subscribed.

### Von Schnittstelle geerbte Methoden java.lang.Comparable

`compareTo`

## Methodendetails

### getManager

CDORemoteSessionManager getManager()
Returns the remote session manager that manages this remote session.

### getSessionID

int getSessionID()
Returns the session ID of this remote session.

### getUserID

String getUserID()
Returns the user ID of this remote session.

### isSubscribed

boolean isSubscribed()
Returns `true` if this remote session is subscribed to changes in the set of remote sessions and delivers `custom data events`, `false` otherwise.

### sendMessage

boolean sendMessage(CDORemoteSessionMessage message)
Sends a unicast message to this remote session if it is subscribed.

Gibt zurück:
  `true` if the server received the custom data message, `false` otherwise. Note: No assumption must be made on whether the recipient session received the message and was able to handle it adequately!
Löst aus:
  `CDOException` - if this remote session is not subscribed.
Seit:
  3.0
Siehe auch:
  - `isSubscribed()`