org.jboss.errai.otec.server
Class MultiplePeerState
java.lang.Object
org.jboss.errai.otec.server.MultiplePeerState
- All Implemented Interfaces:
- PeerState
public class MultiplePeerState
- extends Object
- implements PeerState
- Author:
- Christian Sadilek, Mike Brock
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiplePeerState
public MultiplePeerState()
registerPeer
public void registerPeer(OTPeer peer)
- Specified by:
registerPeer
in interface PeerState
deregisterPeer
public void deregisterPeer(OTPeer peer)
- Specified by:
deregisterPeer
in interface PeerState
getPeer
public OTPeer getPeer(String peerId)
- Specified by:
getPeer
in interface PeerState
getPeersFor
public Set<OTPeer> getPeersFor(Integer entity)
- Specified by:
getPeersFor
in interface PeerState
getEntityPeerRelationshipMap
public Map<Integer,Set<OTPeer>> getEntityPeerRelationshipMap()
- Specified by:
getEntityPeerRelationshipMap
in interface PeerState
associateEntity
public void associateEntity(OTPeer peer,
Integer entity)
- Specified by:
associateEntity
in interface PeerState
disassociateEntity
public void disassociateEntity(OTPeer peer,
Integer entity)
- Specified by:
disassociateEntity
in interface PeerState
addEntityStream
public EntityStreamRegistration addEntityStream(EntityChangeStream stream)
- Specified by:
addEntityStream
in interface PeerState
flushEntityStreams
public void flushEntityStreams(Integer entityId)
- Specified by:
flushEntityStreams
in interface PeerState
shouldForwardOperation
public boolean shouldForwardOperation(OTOperation operation)
- Specified by:
shouldForwardOperation
in interface PeerState
forceResyncAll
public void forceResyncAll(OTEntity entity)
- Specified by:
forceResyncAll
in interface PeerState
hasConflictResolutionPrecedence
public boolean hasConflictResolutionPrecedence()
- Specified by:
hasConflictResolutionPrecedence
in interface PeerState
addResyncListener
public void addResyncListener(Integer entity,
ResyncListener resyncListener)
- Specified by:
addResyncListener
in interface PeerState
notifyResync
public void notifyResync(OTEntity entity)
- Specified by:
notifyResync
in interface PeerState
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.