Package com.usatiuk.dhfsfs.objects
Class FileSyncHandler
java.lang.Object
com.usatiuk.dhfsfs.objects.FileSyncHandler
- All Implemented Interfaces:
ObjSyncHandler<File,FileDto>
@ApplicationScoped
public class FileSyncHandler
extends Object
implements ObjSyncHandler<File,FileDto>
Handles synchronization of file objects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleRemoteUpdate(PeerId from, JObjectKey key, org.pcollections.PMap<PeerId, Long> receivedChangelog, FileDto receivedData) Handles a remote update of an object.
-
Constructor Details
-
FileSyncHandler
public FileSyncHandler()
-
-
Method Details
-
handleRemoteUpdate
public void handleRemoteUpdate(PeerId from, JObjectKey key, org.pcollections.PMap<PeerId, Long> receivedChangelog, @Nullable FileDto receivedData) Description copied from interface:ObjSyncHandlerHandles a remote update of an object.- Specified by:
handleRemoteUpdatein interfaceObjSyncHandler<File,FileDto> - Parameters:
from- the ID of the peer that sent the updatekey- the key of the objectreceivedChangelog- the changelog received from the peerreceivedData- the data received from the peer
-