T - The type of the Document that this client can handleS - The type of Edits that this client can handlepublic final class NettySyncClient<T,S extends org.jboss.aerogear.sync.Edit<? extends org.jboss.aerogear.sync.Diff>> extends Object implements org.jboss.aerogear.sync.client.SyncClient<T,S>
| Modifier and Type | Class and Description |
|---|---|
static class |
NettySyncClient.Builder<T,S extends org.jboss.aerogear.sync.Edit<? extends org.jboss.aerogear.sync.Diff>> |
| Modifier and Type | Method and Description |
|---|---|
void |
addDocument(org.jboss.aerogear.sync.ClientDocument<T> document) |
void |
addPatchListener(org.jboss.aerogear.sync.client.PatchListener<T> listener) |
String |
clientId() |
NettySyncClient<T,S> |
connect() |
int |
countPatchListeners() |
void |
deletePatchListener(org.jboss.aerogear.sync.client.PatchListener<T> listener) |
void |
deletePatchListeners() |
void |
diffAndSend(org.jboss.aerogear.sync.ClientDocument<T> document) |
void |
disconnect() |
static <T,S extends org.jboss.aerogear.sync.Edit<? extends org.jboss.aerogear.sync.Diff>> |
forHost(String host) |
boolean |
isConnected() |
public NettySyncClient<T,S> connect() throws InterruptedException
connect in interface org.jboss.aerogear.sync.client.SyncClient<T,S extends org.jboss.aerogear.sync.Edit<? extends org.jboss.aerogear.sync.Diff>>InterruptedExceptionpublic void addDocument(org.jboss.aerogear.sync.ClientDocument<T> document)
public void diffAndSend(org.jboss.aerogear.sync.ClientDocument<T> document)
public void disconnect()
public boolean isConnected()
public void addPatchListener(org.jboss.aerogear.sync.client.PatchListener<T> listener)
public void deletePatchListener(org.jboss.aerogear.sync.client.PatchListener<T> listener)
public void deletePatchListeners()
public int countPatchListeners()
public String clientId()
public static <T,S extends org.jboss.aerogear.sync.Edit<? extends org.jboss.aerogear.sync.Diff>> NettySyncClient.Builder<T,S> forHost(String host)
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.