org.jboss.errai.otec.server
Class ServerOTPeerImpl
java.lang.Object
org.jboss.errai.otec.server.ServerOTPeerImpl
- All Implemented Interfaces:
- OTPeer
public class ServerOTPeerImpl
- extends Object
- implements OTPeer
- Author:
- Mike Brock
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
peerDataMap
protected final Map<Integer,org.jboss.errai.otec.server.ServerOTPeerImpl.PeerData> peerDataMap
synced
protected volatile boolean synced
ServerOTPeerImpl
public ServerOTPeerImpl(String remoteEngineId,
MessageBus bus)
getId
public String getId()
- Specified by:
getId
in interface OTPeer
sendPurgeHint
public void sendPurgeHint(Integer entityId,
int revision)
- Specified by:
sendPurgeHint
in interface OTPeer
send
public void send(OTOperation operation)
- Specified by:
send
in interface OTPeer
forceResync
public void forceResync(Integer entityId,
int revision,
String state)
- Specified by:
forceResync
in interface OTPeer
isSynced
public boolean isSynced()
- Specified by:
isSynced
in interface OTPeer
setSynced
public void setSynced(boolean synced)
beginSyncRemoteEntity
public void beginSyncRemoteEntity(String peerId,
int entityId,
EntitySyncCompletionCallback<State> callback)
- Specified by:
beginSyncRemoteEntity
in interface OTPeer
setLastKnownRemoteSequence
public void setLastKnownRemoteSequence(Integer entity,
int sequence)
- Specified by:
setLastKnownRemoteSequence
in interface OTPeer
getLastKnownRemoteSequence
public int getLastKnownRemoteSequence(Integer entity)
- Specified by:
getLastKnownRemoteSequence
in interface OTPeer
getLastTransmittedSequence
public int getLastTransmittedSequence(Integer entity)
- Specified by:
getLastTransmittedSequence
in interface OTPeer
getPeerData
protected org.jboss.errai.otec.server.ServerOTPeerImpl.PeerData getPeerData(Integer entityId)
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.