void setPaused ( final boolean isPaused ) { docLock . writeLock ( ) . lock ( ) ; try { docsColl . updateOne ( getDocFilter ( namespace , documentId ) , new BsonDocument ( "$set" , new BsonDocument ( ConfigCodec . Fields . IS_PAUSED , new BsonBoolean ( isPaused ) ) ) ) ; this . isPaused = isPaused ; } catch ( IllegalStateException e ) { // eat this } finally { docLock . writeLock ( ) . unlock ( ) ; } }
A document that is paused no longer has remote updates applied to it . Any local updates to this document cause it to be thawed . An example of pausing a document is when a conflict is being resolved for that document and the handler throws an exception .