|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectAbstractSharedObject
com.smaxe.uv.client.SharedObject
public final class SharedObject
SharedObject - remote ISharedObject implementation.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.smaxe.uv.client.ISharedObject |
|---|
ISharedObject.Change, ISharedObject.IListener, ISharedObject.ListenerAdapter |
| Field Summary |
|---|
| Fields inherited from interface com.smaxe.uv.client.ISharedObject |
|---|
defaultObjectEncoding |
| Constructor Summary | |
|---|---|
SharedObject(java.lang.String name)
Constructor. |
|
SharedObject(java.lang.String name,
boolean persistent)
Constructor. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the connection between a remote shared object and the server. |
void |
connect(INetConnection connection,
java.lang.String params)
Connects to a remote shared object on the server through the specified connection. |
java.util.Map<java.lang.String,java.lang.Object> |
data()
Returns shared object data. |
void |
flush(int minDiskSpace)
Immediately writes a locally persistent shared object to a local file. |
void |
send(java.lang.String action,
java.lang.Object... args)
Broadcasts a message to all clients connected to the specified remote shared object, including the client that sent the message. |
void |
setDirty(java.lang.String propertyName)
Indicates to the server that the value of a property in the shared object has changed. |
void |
setProperty(java.lang.String propertyName,
java.lang.Object value)
Updates the value of a property in a shared object and indicates to the server that the value of the property has changed. |
int |
size()
Returns current size of the shared object, in bytes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.smaxe.uv.client.ISharedObject |
|---|
addEventListener, clear, client, client, fps, fps, getName, isPersistent, objectEncoding, objectEncoding, removeEventListener |
| Constructor Detail |
|---|
public SharedObject(java.lang.String name,
boolean persistent)
name - local shared object namepersistent - persistent flagpublic SharedObject(java.lang.String name)
name - name| Method Detail |
|---|
public void connect(INetConnection connection,
java.lang.String params)
ISharedObject
connect in interface ISharedObjectconnection - connectionparams - connection parameters
public void send(java.lang.String action,
java.lang.Object... args)
ISharedObject
send in interface ISharedObjectaction - actionargs - arguments (0 or more)public java.util.Map<java.lang.String,java.lang.Object> data()
ISharedObject
data in interface ISharedObjectdata
property of the object
public void setProperty(java.lang.String propertyName,
java.lang.Object value)
ISharedObject
setProperty in interface ISharedObjectpropertyName - property namevalue - valuepublic int size()
ISharedObject
size in interface ISharedObjectpublic void close()
ISharedObject
close in interface ISharedObjectpublic void setDirty(java.lang.String propertyName)
ISharedObject
setDirty in interface ISharedObjectpropertyName - property namepublic void flush(int minDiskSpace)
ISharedObject
flush in interface ISharedObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||