public class RemoteSession extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
eventBridgeFactory |
protected Map |
eventBridgeParameters |
protected String |
name |
protected String |
sessionId |
Constructor and Description |
---|
RemoteSession(String sessionId)
Creates a HessianServiceDescriptor without server events support.
|
RemoteSession(String sessionId,
String eventBridgeFactory,
Map eventBridgeParameters)
Creates a HessianServiceDescriptor.
|
Modifier and Type | Method and Description |
---|---|
EventBridge |
createServerEventBridge()
Creates an EventBridge that will listen for server events.
|
String |
getName()
Returns session group name.
|
String |
getSessionId()
Returns server session id.
|
int |
hashCode() |
boolean |
isServerEventsEnabled() |
void |
setName(String name) |
String |
toString() |
protected String name
protected String sessionId
protected String eventBridgeFactory
protected Map eventBridgeParameters
public RemoteSession(String sessionId)
public String getSessionId()
public String getName()
public void setName(String name)
public boolean isServerEventsEnabled()
public EventBridge createServerEventBridge() throws CayenneRuntimeException
CayenneRuntimeException
- if EventBridge startup fails for any reason.Copyright © 2001–2018 Apache Cayenne. All rights reserved.