public class SynchronizeFxServer extends Object
Property interface will be synchronized between all clients.| Constructor and Description |
|---|
SynchronizeFxServer(Object model,
CommandTransferServer networkLayer,
ServerCallback callback)
Sets up everything that is needed to serve a domain model.
|
SynchronizeFxServer(Object model,
CommandTransferServer networkLayer,
ServerCallback callback,
Executor changeExecutor)
Sets up everything that is needed to serve a domain model.
|
public SynchronizeFxServer(Object model, CommandTransferServer networkLayer, ServerCallback callback)
This method doesn't start the server. Use start() for that. Using this
constructor, all changes done to JavaFX properties will be executed directly in the current thread.
model - The root object of the domain model to serve.networkLayer - An object that does the network transfer and optionally the serialization of the data
generated to keep models synchron.callback - Used to inform the user of this class on errors. The methods in the callback are not called
before you call start().public SynchronizeFxServer(Object model, CommandTransferServer networkLayer, ServerCallback callback, Executor changeExecutor)
This method doesn't start the server. Use start() for that. Using this
constructor, all changes done to JavaFX properties will be executed directly in the current thread.
model - The root object of the domain model to serve.networkLayer - An object that does the network transfer and optionally the serialization of the data
generated to keep models synchron.callback - Used to inform the user of this class on errors. The methods in the callback are not called
before you call start().changeExecutor - An executor used to execute all changes done to JavaFX properties.Copyright © 2014 Saxonia Systems AG. All Rights Reserved.